Skip to content

Commit

Permalink
- update onInstall UI
Browse files Browse the repository at this point in the history
  • Loading branch information
lennardevertz committed Oct 23, 2024
1 parent 5f44cc5 commit bc7fcfe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/idriss-crypto/snap/tree/main/packages/snap"
},
"source": {
"shasum": "jQRz6xTMZkvAIKyiDhlg+jfSsGovfrwf5Dzz6YZTcUA=",
"shasum": "ex4V0QQ9VxWNiZsWbGUIPJeldu55HZ/iGRn4KeCEwOg=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
30 changes: 14 additions & 16 deletions packages/snap/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,44 +62,42 @@ export const onNameLookup: OnNameLookupHandler = async (request: {
};

export const onInstall: OnInstallHandler = async () => {
console.log('onInstall called');
await snap.request({
method: 'snap_dialog',
params: {
type: 'alert',
content: (
<Box>
<Heading>Installation successful 🎉</Heading>
<Heading>You're all set! ✅</Heading>
<Text>
MetaMask can now send to a number of social handles and domans.
Now you can use your favorite identifiers in the send flow
</Text>
<Divider />
<Row label="IDriss">
<Text>username.x</Text>
<Row label="Twitter">
<Text>[name].x / [name].twitter</Text>
</Row>
<Row label="">
<Text>username.twitter</Text>
<Row label="Email">
<Text>[email protected]</Text>
</Row>
<Row label="Phone">
<Text>+11234567890</Text>
</Row>
<Divider />
<Row label="Farcaster">
<Text>username.fc</Text>
</Row>
<Row label="">
<Text>username.farcaster</Text>
<Text>[name].fc / [name].farcaster</Text>
</Row>
<Divider />
<Row label="Lens">
<Text>username.lens</Text>
<Text>[name].lens</Text>
</Row>
<Divider />
<Row label="Unstoppable Domains">
<Text>Valid UDs</Text>
<Text>[name].[domain]</Text>
</Row>
<Divider />
<Row label="ENS">
<Text>
Valid ENS, given it does not resolve to a contract address on
Mainnet
</Text>
<Text>[name].eth</Text>
</Row>
</Box>
),
Expand Down

0 comments on commit bc7fcfe

Please sign in to comment.