-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP - Manage ownable validator module (#588)
* added settings and pages * implemented installing ownable validator module * added updateThreshold action implementation * added implementation for addOwner action * disabling uninstall button * Not implemented uninstall module functionality
- Loading branch information
1 parent
e94986f
commit 02d2d06
Showing
17 changed files
with
850 additions
and
192 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
advanced/wallets/react-wallet-v2/src/components/ModuleActions.tsx
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 @@ | ||
import { Fragment, useMemo } from 'react' | ||
import OwnableValidatorActions from '@/views/OwnableValidatorActions' | ||
import { ModuleView } from '@/data/ERC7579ModuleData' | ||
import { Module } from '@rhinestone/module-sdk' | ||
|
||
export default function ModuleActions({ | ||
accountAddress, | ||
chainId, | ||
view | ||
}: { | ||
accountAddress: string | ||
chainId: string | ||
view?: ModuleView | ||
}) { | ||
const componentView = useMemo(() => { | ||
switch (view) { | ||
case 'OwnableValidatorActions': | ||
return <OwnableValidatorActions accountAddress={accountAddress} chainId={chainId} /> | ||
default: | ||
return null | ||
} | ||
}, [accountAddress, chainId, view]) | ||
|
||
return <Fragment>{componentView}</Fragment> | ||
} |
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
Oops, something went wrong.