Skip to content

Commit

Permalink
Make subtitle field optional in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Jun 25, 2024
1 parent ac39e0f commit d8fe5ee
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/lib/views/Editor.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import { Fragment, useState } from "react";
import {
Button,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
DialogActions,
Button,
Grid,
useTheme,
useMediaQuery,
useTheme,
} from "@mui/material";
import { addMinutes, differenceInMinutes } from "date-fns";
import { Fragment, useState } from "react";
import { EditorDatePicker } from "../components/inputs/DatePicker";
import { EditorInput } from "../components/inputs/Input";
import { EditorSelect } from "../components/inputs/SelectInput";
import { arraytizeFieldVal, revertTimeZonedDate } from "../helpers/generals";
import useStore from "../hooks/useStore";
import { SelectedRange } from "../store/types";
import {
EventActions,
FieldInputProps,
Expand All @@ -20,10 +24,6 @@ import {
ProcessedEvent,
SchedulerHelpers,
} from "../types";
import { EditorSelect } from "../components/inputs/SelectInput";
import { arraytizeFieldVal, revertTimeZonedDate } from "../helpers/generals";
import { SelectedRange } from "../store/types";
import useStore from "../hooks/useStore";

export type StateItem = {
value: any;
Expand Down Expand Up @@ -62,7 +62,7 @@ const initialState = (fields: FieldProps[], event?: StateEvent): Record<string,
},
subtitle: {
value: event?.subtitle || "",
validity: !!event?.subtitle,
validity: true,
type: "input",
config: { label: "Subtitle", required: false },
},
Expand Down

0 comments on commit d8fe5ee

Please sign in to comment.