This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save Swap Page global state and load page data (#117)
- Loading branch information
1 parent
4df06a4
commit d2aa45a
Showing
4 changed files
with
45 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { atom } from 'jotai'; | ||
import assets from "src/lib/CoinsMetadata"; | ||
import { Coin } from 'src/types'; | ||
import { ActiveInput } from './types'; | ||
|
||
export const swapActiveInputAtom = atom<ActiveInput>(ActiveInput.from); | ||
export const swapCoinsAtom = atom<[Coin, Coin]>([ | ||
assets[0], | ||
assets[1], | ||
]) | ||
export const swapAmountAtom = atom<bigint | null>(null); |
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 |
---|---|---|
|
@@ -6917,6 +6917,11 @@ jest@^27.4.3: | |
import-local "^3.0.2" | ||
jest-cli "^27.5.1" | ||
|
||
jotai@^1.6.6: | ||
version "1.6.6" | ||
resolved "https://registry.yarnpkg.com/jotai/-/jotai-1.6.6.tgz#ec3a8b4e5a323b00c2f9ca0d05825d0aeaeebe75" | ||
integrity sha512-rzUyxHFImnDDjUmC0i0BXyppq1M6ZxrHjhp0SK3VQXvXYAu5Hz9wPJ6w207s2Mlv7jpfiIf26w9m82FLCP3eqw== | ||
|
||
[email protected], js-sha3@^0.8.0: | ||
version "0.8.0" | ||
resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" | ||
|