From c27ea205babfc7df1618728200f111c44f7658ec Mon Sep 17 00:00:00 2001 From: kamre Date: Tue, 27 Jul 2021 15:56:38 +0700 Subject: [PATCH] [GH-778] Remove date format from the user settings (#790) * Preferred date format removed from user settings. Date format is always `MM/DD/YYYY` for editing in the input. * Snapshots for jest tests updated. --- .../src/components/propertyValueElement.tsx | 2 - .../sidebarSettingsMenu.test.tsx.snap | 66 ------------------- .../sidebar/sidebarSettingsMenu.tsx | 41 ------------ webapp/src/dateFormat.ts | 4 -- webapp/src/userSettings.ts | 10 +-- webapp/src/widgets/editableDayPicker.tsx | 5 +- 6 files changed, 4 insertions(+), 124 deletions(-) delete mode 100644 webapp/src/dateFormat.ts diff --git a/webapp/src/components/propertyValueElement.tsx b/webapp/src/components/propertyValueElement.tsx index 63cd7b795..89565466b 100644 --- a/webapp/src/components/propertyValueElement.tsx +++ b/webapp/src/components/propertyValueElement.tsx @@ -19,7 +19,6 @@ import EditableDayPicker from '../widgets/editableDayPicker' import Switch from '../widgets/switch' import {CardTree} from '../viewModel/cardTree' -import {UserSettings} from '../userSettings' import UserProperty from './properties/user/user' import MultiSelectProperty from './properties/multiSelect' @@ -160,7 +159,6 @@ const PropertyValueElement = (props:Props): JSX.Element => { mutator.changePropertyValue(card, propertyTemplate.id, newValue)} /> ) diff --git a/webapp/src/components/sidebar/__snapshots__/sidebarSettingsMenu.test.tsx.snap b/webapp/src/components/sidebar/__snapshots__/sidebarSettingsMenu.test.tsx.snap index 35f19cd95..64a9aa4e5 100644 --- a/webapp/src/components/sidebar/__snapshots__/sidebarSettingsMenu.test.tsx.snap +++ b/webapp/src/components/sidebar/__snapshots__/sidebarSettingsMenu.test.tsx.snap @@ -301,28 +301,6 @@ exports[`components/sidebar/SidebarSettingsMenu languages menu open should match /> - -