diff --git a/src/components/ExpandableListItemActions.tsx b/src/components/ExpandableListItemActions.tsx
index 497cef7..748954f 100644
--- a/src/components/ExpandableListItemActions.tsx
+++ b/src/components/ExpandableListItemActions.tsx
@@ -6,6 +6,7 @@ const useStyles = makeStyles((theme: Theme) =>
createStyles({
action: {
marginTop: theme.spacing(0.75),
+ marginBottom: theme.spacing(1),
marginRight: theme.spacing(1),
},
}),
diff --git a/src/pages/settings/index.tsx b/src/pages/settings/index.tsx
index 3f0b32d..ffbdeaa 100644
--- a/src/pages/settings/index.tsx
+++ b/src/pages/settings/index.tsx
@@ -1,69 +1,15 @@
-import { ReactElement, useState, useContext } from 'react'
-import { makeStyles, createStyles, Theme } from '@material-ui/core/styles'
-import { TextField, Typography, Button } from '@material-ui/core'
+import { ReactElement, useContext } from 'react'
import { Context as SettingsContext } from '../../providers/Settings'
-
-const useStyles = makeStyles((theme: Theme) =>
- createStyles({
- item: {
- margin: 0,
- marginTop: theme.spacing(4),
- },
- }),
-)
+import ExpandableList from '../../components/ExpandableList'
+import ExpandableListItemInput from '../../components/ExpandableListItemInput'
export default function Settings(): ReactElement {
- const classes = useStyles()
const { apiUrl, apiDebugUrl, setApiUrl, setDebugApiUrl } = useContext(SettingsContext)
- const [host, setHost] = useState(apiUrl)
- const [debugHost, setDebugHost] = useState(apiDebugUrl)
-
- const submit = () => {
- if (host !== apiUrl) setApiUrl(host)
-
- if (debugHost !== apiDebugUrl) setDebugApiUrl(debugHost)
- }
-
- const touched = host !== apiUrl || debugHost !== apiDebugUrl
return (
- <>
-
- Settings
-
- {
- setHost(e.target.value)
- }}
- />
- {
- setDebugHost(e.target.value)
- }}
- margin="normal"
- InputLabelProps={{
- shrink: true,
- }}
- />
- {touched && (
-
- )}
- >
+
+
+
+
)
}