clean up Date, DateTime fields

This commit is contained in:
Sidney Alcantara
2020-11-29 16:30:57 +11:00
parent 6159265ff3
commit 3d040d8513
5 changed files with 3 additions and 31 deletions

View File

@@ -18,8 +18,7 @@ const SideDrawerField = lazy(
export const config: IFieldConfig = {
type: FieldType.date,
name: "Date",
dataType: "boolean",
initialValue: false,
dataType: "firebase.firestore.Timestamp",
icon: <DateIcon />,
description:
"Date displayed and input as YYYY/MM/DD or input using a picker module.",

View File

@@ -1,13 +0,0 @@
import { makeStyles, createStyles } from "@material-ui/core";
import { green } from "@material-ui/core/colors";
export const useSwitchStyles = makeStyles(() =>
createStyles({
switchBase: {
"&$checked": { color: green["A700"] },
"&$checked + $track": { backgroundColor: green["A700"] },
},
checked: {},
track: {},
})
);

View File

@@ -20,8 +20,7 @@ const SideDrawerField = lazy(
export const config: IFieldConfig = {
type: FieldType.dateTime,
name: "Time & Date",
dataType: "boolean",
initialValue: false,
dataType: "firebase.firestore.Timestamp",
icon: <DateTimeIcon />,
description:
"Time and Date can be written as YYYY/MM/DD hh:mm (am/pm) or input using a picker module.",

View File

@@ -1,13 +0,0 @@
import { makeStyles, createStyles } from "@material-ui/core";
import { green } from "@material-ui/core/colors";
export const useSwitchStyles = makeStyles(() =>
createStyles({
switchBase: {
"&$checked": { color: green["A700"] },
"&$checked + $track": { backgroundColor: green["A700"] },
},
checked: {},
track: {},
})
);

View File

@@ -9,7 +9,7 @@ export interface IFieldConfig {
type: FieldType;
name: string;
dataType: string;
initialValue: any;
initialValue?: any;
icon?: React.ReactNode;
description?: string;
setupGuideLink?: string;