diff --git a/frontend/src/pages/app-config/app-config.tsx b/frontend/src/pages/app-config/app-config.tsx index 68471fd3..63df2d70 100644 --- a/frontend/src/pages/app-config/app-config.tsx +++ b/frontend/src/pages/app-config/app-config.tsx @@ -185,14 +185,13 @@ const AppConfig: React.FC = () => { summary="Collect images of TV shows & movies using TMDB" /> - {/* */} + /> { summary="Collect public Instagram images" /> - {/* */} + /> diff --git a/frontend/src/pages/app-settings/parks-settings.tsx b/frontend/src/pages/app-settings/parks-settings.tsx index 4f63c950..f1b496a5 100644 --- a/frontend/src/pages/app-settings/parks-settings.tsx +++ b/frontend/src/pages/app-settings/parks-settings.tsx @@ -1,15 +1,9 @@ import React, { useEffect, useState } from 'react'; -import { makeStyles } from '@material-ui/core/styles'; import { useForm } from 'react-hook-form'; -import { Button, Form, SwitchForm2, TextField2, MultiSelect2 } from '@schulzetenberg/component-library'; - -const useStyles = makeStyles(() => ({ - textCenter: { textAlign: 'center' }, -})); +import { Button, Form, MultiSelect2 } from '@schulzetenberg/component-library'; type FormData = { - active: boolean; visited: { value: string; label: string }[]; options: { value: string; label: string }[]; schedule: string; @@ -17,7 +11,6 @@ type FormData = { }; const ParksSettings: React.FC<{ data: FormData; isLoading: boolean; submit: any }> = ({ data, isLoading, submit }) => { - const classes = useStyles(); const [options, setOptions] = useState<{ value: string; label: string }[]>([]); const { @@ -33,21 +26,14 @@ const ParksSettings: React.FC<{ data: FormData; isLoading: boolean; submit: any if (data) { setOptions(data.options); - const { active, visited, schedule, cloudinaryUpload } = data; - reset({ active, visited, schedule, cloudinaryUpload }); + const { visited } = data; + reset({ visited }); } }, [data, reset]); return (
-
- -
- -
- -
diff --git a/frontend/src/pages/app-settings/states-settings.tsx b/frontend/src/pages/app-settings/states-settings.tsx index 17ad20ae..222c81b6 100644 --- a/frontend/src/pages/app-settings/states-settings.tsx +++ b/frontend/src/pages/app-settings/states-settings.tsx @@ -1,12 +1,7 @@ import React, { useEffect, useState } from 'react'; -import { makeStyles } from '@material-ui/core/styles'; import { useForm } from 'react-hook-form'; -import { Button, Form, SwitchForm2, MultiSelect2 } from '@schulzetenberg/component-library'; - -const useStyles = makeStyles(() => ({ - textCenter: { textAlign: 'center' }, -})); +import { Button, Form, MultiSelect2 } from '@schulzetenberg/component-library'; type FormData = { visited: { value: string; label: string }[]; @@ -14,7 +9,6 @@ type FormData = { }; const StatesSettings: React.FC<{ data: FormData; isLoading: boolean; submit: any }> = ({ data, isLoading, submit }) => { - const classes = useStyles(); const [options, setOptions] = useState<{ value: string; label: string }[]>([]); const { @@ -37,9 +31,6 @@ const StatesSettings: React.FC<{ data: FormData; isLoading: boolean; submit: any return ( -
- -