File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { t } from '@lingui/core/macro'
22
33import { useDesktopLogout } from '../../hooks/useDesktopLogout'
4+ import { useInactivity } from '../../hooks/useInactivity'
45import { FadeInWrapper } from '../../shared/components/FadeInWrapper'
56import { NAVIGATION_ROUTES } from '../../shared/constants/navigation'
67import { useModal } from '../../shared/context/ModalContext'
@@ -15,7 +16,6 @@ import { RecordList } from '../pages/RecordList'
1516import { SelectPasskey } from '../pages/SelectPasskey'
1617import { Settings } from '../pages/Settings'
1718import { WelcomePage } from '../pages/WelcomePage'
18- import { useInactivity } from '../../hooks/useInactivity'
1919
2020export const Routes = ( ) => {
2121 const { currentPage, navigate } = useRouter ( )
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
1313} from 'pearpass-lib-constants'
1414
1515import { version } from '../../../../public/manifest.json'
16+ import { useAutoLockPreferences } from '../../../hooks/useAutoLockPreferences'
1617import { useLanguageOptions } from '../../../hooks/useLanguageOptions'
1718import { ButtonRoundIcon } from '../../../shared/components/ButtonRoundIcon'
1819import { ButtonSecondary } from '../../../shared/components/ButtonSecondary'
@@ -36,7 +37,6 @@ import {
3637} from '../../../shared/utils/autofillSetting'
3738import { isPasswordChangeReminderDisabled } from '../../../shared/utils/isPasswordChangeReminderDisabled'
3839import { logger } from '../../../shared/utils/logger'
39- import { useAutoLockPreferences } from '../../../hooks/useAutoLockPreferences'
4040
4141export const TIMEOUT_OPTIONS = Object . values ( AUTO_LOCK_TIMEOUT_OPTIONS )
4242
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export const Switch = ({ isOn, onChange }) => {
1414 return (
1515 < button
1616 onClick = { toggleSwitch }
17- className = { `relative shrink-0 h-6 w-12 cursor-pointer rounded-full border border-green-100 transition-all duration-300 ease-in-out ${ isOn ? 'bg-grey400-mode1' : 'bg-grey100-mode1' } ` }
17+ className = { `relative h-6 w-12 shrink-0 cursor-pointer rounded-full border border-green-100 transition-all duration-300 ease-in-out ${ isOn ? 'bg-grey400-mode1' : 'bg-grey100-mode1' } ` }
1818 >
1919 < div
2020 className = { `${ isOn ? 'bg-primary400-mode1' : 'bg-grey400-mode1' } absolute top-[1px] left-[1px] h-5 w-5 rounded-full shadow-md transition-transform duration-300 ease-in-out ${ isOn ? 'translate-x-6' : '' } ` }
You can’t perform that action at this time.
0 commit comments