fix migration casing, UI improvements

This commit is contained in:
Dobromir Popov
2024-06-21 16:46:34 +03:00
parent 784f95cc9f
commit 43809487a7
2 changed files with 7 additions and 4 deletions

View File

@ -213,13 +213,16 @@ const SurveyForm: React.FC<SurveyFormProps> = ({ existingItem }) => {
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="date"> <label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="date">
Видима от Видима от
</label> </label>
<DatePicker className="textbox form-input px-4 py-2 rounded" name="publicFrom" onChange={(newDate) => handleDateChange('publicFrom', newDate)} value={dayjs(item?.publicFrom)} /> <DatePicker className="textbox form-input px-4 py-2 rounded" name="publicFrom" onChange={(newDate) => handleDateChange('publicFrom', newDate)}
value={item && item.publicFrom ? dayjs(item.publicFrom) : null} />
</div> </div>
<div className="mb-4"> <div className="mb-4">
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="date"> <label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="date">
Видима до Видима до
</label> </label>
<DatePicker className="textbox form-input px-4 py-2 rounded" name="publicUntil" onChange={(newDate) => handleDateChange('publicUntil', newDate)} value={dayjs(item?.publicUntil)} /> <DatePicker className="textbox form-input px-4 py-2 rounded" name="publicUntil" onChange={(newDate) => handleDateChange('publicUntil', newDate)}
value={item && item.publicUntil ? dayjs(item.publicUntil) : null}
/>
</div> </div>
<div className="mb-4"> <div className="mb-4">
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="content"> <label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="content">

View File

@ -1,5 +1,5 @@
-- AlterTable -- AlterTable
ALTER TABLE `message` MODIFY `content` TEXT NOT NULL; ALTER TABLE `Message` MODIFY `content` TEXT NOT NULL;
-- AlterTable -- AlterTable
ALTER TABLE `survey` MODIFY `content` TEXT NOT NULL; ALTER TABLE `Survey` MODIFY `content` TEXT NOT NULL;