-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dan Mugisho
authored and
Dan Mugisho
committed
Jun 12, 2022
1 parent
be2b5e3
commit f013a0e
Showing
11 changed files
with
77 additions
and
64 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
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 |
---|---|---|
@@ -1,22 +1,35 @@ | ||
import walletAtom from "./walletAtom"; | ||
import subscribesAtom from "./subscribesAtom"; | ||
import walletAddressAtom from "./walletAddressAtom"; | ||
import { atom } from "recoil"; | ||
import { UserAccount } from "@lib/models/UserAccount"; | ||
|
||
const profileMenuAtom = atom({ | ||
export const currentAccountState = atom<UserAccount | null>({ | ||
key: "currentAccountState", | ||
default: null, | ||
}); | ||
|
||
export const walletAddressAtom = atom({ | ||
key: "walletAddress", | ||
default: { | ||
address: "", | ||
balance: "", | ||
}, | ||
}); | ||
|
||
export const profileMenuAtom = atom({ | ||
key: "profileMenu", | ||
default: true, | ||
}); | ||
|
||
const shareProfileLinkAtom = atom({ | ||
export const shareProfileLinkAtom = atom({ | ||
key: "shareProfileLinkAtom", | ||
default: false, | ||
default: true, | ||
}); | ||
|
||
export { | ||
walletAtom, | ||
walletAddressAtom, | ||
subscribesAtom, | ||
profileMenuAtom, | ||
shareProfileLinkAtom, | ||
}; | ||
export const subscribesAtom = atom({ | ||
key: "displaySubScribesState", | ||
default: true, | ||
}); | ||
|
||
export const walletAtom = atom({ | ||
key: "displayWallet", | ||
default: true, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.