-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add useTransactionSummary hook to utils * Fix tailwind dark mode on keychain * Mock summary data * TransactionDetails -> SessionSummary * Add accordion component * Style sesstion summary card * Style session contract icon * Style typed data for sign messsage policy * Remove old policies comp from create session page * Show policy description as tooltip * Collapsible sign message entries * Set provider for sonner toaster in keychain * Add explorer link for each contract * Replace mock data with useSessionSummary hook
- Loading branch information
1 parent
da4a9c9
commit bd25e03
Showing
33 changed files
with
1,243 additions
and
658 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
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,25 @@ | ||
(function () { | ||
const storageKey = "vite-ui-colorScheme"; | ||
const classNameDark = "dark"; | ||
const params = new URL(document.location).searchParams; | ||
const colorScheme = | ||
params.get("colorMode") ?? localStorage.getItem(storageKey) ?? "system"; | ||
const html = document.getElementsByTagName("html")[0]; | ||
|
||
switch (colorScheme) { | ||
case "light": | ||
break; | ||
case "dark": | ||
html.classList.add(classNameDark); | ||
break; | ||
case "system": | ||
if (window.matchMedia("(prefers-color-scheme: dark)").matches) { | ||
html.classList.add(classNameDark); | ||
} | ||
break; | ||
default: | ||
break; | ||
} | ||
|
||
localStorage.setItem(storageKey, colorScheme); | ||
})(); |
Oops, something went wrong.