mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-13 17:37:09 +00:00
apply prettier
GitOrigin-RevId: dd750756d2bfc625817760510e9bdbade186aef3
This commit is contained in:
parent
c2b0707c2a
commit
8ae9839f79
1 changed files with 2 additions and 4 deletions
|
@ -3,10 +3,8 @@ import { saveUserSettings } from '../utils/api'
|
|||
import type { UserSettingsScope } from '../utils/api'
|
||||
|
||||
export default function useSaveUserSettings() {
|
||||
const [userSettingsScope, setUserSettingsScope] = useScopeValue<UserSettingsScope>(
|
||||
'settings',
|
||||
true
|
||||
)
|
||||
const [userSettingsScope, setUserSettingsScope] =
|
||||
useScopeValue<UserSettingsScope>('settings', true)
|
||||
|
||||
return <T,>(key: keyof UserSettingsScope, newSetting: T) => {
|
||||
const currentSetting = userSettingsScope[key]
|
||||
|
|
Loading…
Add table
Reference in a new issue