mirror of
https://github.com/rowyio/rowy.git
synced 2026-07-13 22:08:55 +02:00
clean up Date, DateTime fields
This commit is contained in:
@@ -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.",
|
||||
|
||||
@@ -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: {},
|
||||
})
|
||||
);
|
||||
@@ -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.",
|
||||
|
||||
@@ -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: {},
|
||||
})
|
||||
);
|
||||
@@ -9,7 +9,7 @@ export interface IFieldConfig {
|
||||
type: FieldType;
|
||||
name: string;
|
||||
dataType: string;
|
||||
initialValue: any;
|
||||
initialValue?: any;
|
||||
icon?: React.ReactNode;
|
||||
description?: string;
|
||||
setupGuideLink?: string;
|
||||
|
||||
Reference in New Issue
Block a user