diff --git a/src/components/molecules/UserPreferences/Currency.tsx b/src/components/molecules/UserPreferences/Currency.tsx
new file mode 100644
index 000000000..aa83f3c04
--- /dev/null
+++ b/src/components/molecules/UserPreferences/Currency.tsx
@@ -0,0 +1,24 @@
+import React, { ReactElement, ChangeEvent } from 'react'
+import { useUserPreferences } from '../../../providers/UserPreferences'
+import Input from '../../atoms/Input'
+
+export default function Currency(): ReactElement {
+ const { currency, setCurrency } = useUserPreferences()
+
+ return (
+
+ ) =>
+ setCurrency(e.target.value)
+ }
+ small
+ />
+
+ )
+}
diff --git a/src/components/molecules/UserPreferences/Debug.tsx b/src/components/molecules/UserPreferences/Debug.tsx
new file mode 100644
index 000000000..a86379e07
--- /dev/null
+++ b/src/components/molecules/UserPreferences/Debug.tsx
@@ -0,0 +1,21 @@
+import React, { ReactElement } from 'react'
+import { useUserPreferences } from '../../../providers/UserPreferences'
+import Input from '../../atoms/Input'
+
+export default function Debug(): ReactElement {
+ const { debug, setDebug } = useUserPreferences()
+
+ return (
+
+ setDebug(!debug)}
+ />
+
+ )
+}
diff --git a/src/components/molecules/UserPreferences/Preferences.tsx b/src/components/molecules/UserPreferences/Preferences.tsx
deleted file mode 100644
index cef26eb33..000000000
--- a/src/components/molecules/UserPreferences/Preferences.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { ReactElement, ChangeEvent } from 'react'
-import { useUserPreferences } from '../../../providers/UserPreferences'
-import Input from '../../atoms/Input'
-import styles from './Preferencs.module.css'
-
-export default function Preferences(): ReactElement {
- const { debug, setDebug, currency, setCurrency } = useUserPreferences()
-
- return (
-
- )
-}
diff --git a/src/components/molecules/UserPreferences/Preferencs.module.css b/src/components/molecules/UserPreferences/Preferencs.module.css
deleted file mode 100644
index 6ce8fe485..000000000
--- a/src/components/molecules/UserPreferences/Preferencs.module.css
+++ /dev/null
@@ -1,17 +0,0 @@
-.preferences {
- padding: calc(var(--spacer) / 2);
-}
-
-.preferences li > div {
- margin-bottom: 0;
-}
-
-.preferences li {
- border-bottom: 1px solid var(--brand-grey-lighter);
- margin-bottom: calc(var(--spacer) / 2);
-}
-
-.preferences li:last-child {
- border-bottom: none;
- margin-bottom: 0;
-}
diff --git a/src/components/molecules/UserPreferences/index.module.css b/src/components/molecules/UserPreferences/index.module.css
index efcdc595f..5bfce437e 100644
--- a/src/components/molecules/UserPreferences/index.module.css
+++ b/src/components/molecules/UserPreferences/index.module.css
@@ -15,3 +15,21 @@
.preferences[aria-expanded='true'] .icon {
fill: var(--brand-grey);
}
+
+.preferencesDetails {
+ padding: calc(var(--spacer) / 2);
+}
+
+.preferencesDetails li > div {
+ margin-bottom: 0;
+}
+
+.preferencesDetails li {
+ border-bottom: 1px solid var(--brand-grey-lighter);
+ margin-bottom: calc(var(--spacer) / 2);
+}
+
+.preferencesDetails li:last-child {
+ border-bottom: none;
+ margin-bottom: 0;
+}
diff --git a/src/components/molecules/UserPreferences/index.tsx b/src/components/molecules/UserPreferences/index.tsx
index 94e080019..c926ed47e 100644
--- a/src/components/molecules/UserPreferences/index.tsx
+++ b/src/components/molecules/UserPreferences/index.tsx
@@ -1,13 +1,19 @@
import React, { ReactElement } from 'react'
import Tooltip from '../../atoms/Tooltip'
-import Preferences from './Preferences'
import { ReactComponent as Cog } from '../../../images/cog.svg'
import styles from './index.module.css'
+import Currency from './Currency'
+import Debug from './Debug'
export default function UserPreferences(): ReactElement {
return (
}
+ content={
+
+ }
trigger="click focus"
className={styles.preferences}
>