1
0
Fork 0

wip: Updates to packages

This commit is contained in:
joostdecock 2024-12-14 11:34:23 +01:00
parent 1c81f46dee
commit 755c7395ba
45 changed files with 5268 additions and 22 deletions

View file

@ -5,7 +5,7 @@ import { defaultControlLevel } from '@freesewing/react/config/freesewing'
* When there is no account, we use this making it easy to check for username
* or control
*/
const noAccount = { username: false, control: defaultControlLevel }
const noAccount = { username: false, control: defaultControlLevel, these: 'nuts' }
/*
* FreeSewing's useAccount hook. Grants access to the (data in the) user's account
@ -39,6 +39,7 @@ export function useAccount() {
* Clear user data when signing out
*/
const signOut = () => {
console.log('SIGN OUT')
setAccount(noAccount)
setToken(null)
}