-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core-react): rework useAutoConnect
Separate logic, handle `chainChanged` event
- Loading branch information
1 parent
745d134
commit 7a6b67e
Showing
3 changed files
with
118 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { LS_KEY_TERMS_ACCEPTANCE } from '../constants/localStorage'; | ||
|
||
export const checkTermsAccepted = () => { | ||
if (typeof window !== 'undefined') { | ||
return window.localStorage?.getItem(LS_KEY_TERMS_ACCEPTANCE) === 'true'; | ||
} | ||
return false; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters