diff --git a/src/App.js b/src/App.js index 461e3c2ca..012c7eede 100644 --- a/src/App.js +++ b/src/App.js @@ -12,14 +12,14 @@ export default function App() { const [opened, setOpened] = useState(false); const theme = useMantineTheme(); //let colorSession = sessionStorage.setItem('themeColor'); - const [color,setColor] = useState('light'); + const [color,setColor] = useState(localStorage.getItem('themeColor')); function toggleColorScheme(){ if(color==='light'){ setColor('dark'); - //sessionStorage.setItem('themeColor') = 'dark'; + localStorage.setItem('themeColor', 'dark'); }else{ setColor('light'); - //sessionStorage.setItem('themeColor') = 'light'; + localStorage.setItem('themeColor','light'); } } return ( diff --git a/src/components/passwordauth.jsx b/src/components/passwordauth.jsx index 01f66d102..34423c256 100644 --- a/src/components/passwordauth.jsx +++ b/src/components/passwordauth.jsx @@ -87,6 +87,11 @@ function PasswordAuth(){ Connected +
+ +
Completed! Form values: {JSON.stringify(form.values, null, 2)} @@ -95,11 +100,7 @@ function PasswordAuth(){
-
- -
+ {active !== 0 && (