Skip to content

Commit bc7fcfe

Browse files
committed
- update onInstall UI
1 parent 5f44cc5 commit bc7fcfe

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

packages/snap/snap.manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/idriss-crypto/snap/tree/main/packages/snap"
88
},
99
"source": {
10-
"shasum": "jQRz6xTMZkvAIKyiDhlg+jfSsGovfrwf5Dzz6YZTcUA=",
10+
"shasum": "ex4V0QQ9VxWNiZsWbGUIPJeldu55HZ/iGRn4KeCEwOg=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",

packages/snap/src/index.tsx

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,44 +62,42 @@ export const onNameLookup: OnNameLookupHandler = async (request: {
6262
};
6363

6464
export const onInstall: OnInstallHandler = async () => {
65+
console.log('onInstall called');
6566
await snap.request({
6667
method: 'snap_dialog',
6768
params: {
6869
type: 'alert',
6970
content: (
7071
<Box>
71-
<Heading>Installation successful 🎉</Heading>
72+
<Heading>You're all set! ✅</Heading>
7273
<Text>
73-
MetaMask can now send to a number of social handles and domans.
74+
Now you can use your favorite identifiers in the send flow
7475
</Text>
7576
<Divider />
76-
<Row label="IDriss">
77-
<Text>username.x</Text>
77+
<Row label="Twitter">
78+
<Text>[name].x / [name].twitter</Text>
7879
</Row>
79-
<Row label="">
80-
<Text>username.twitter</Text>
80+
<Row label="Email">
81+
<Text>[email protected]</Text>
82+
</Row>
83+
<Row label="Phone">
84+
<Text>+11234567890</Text>
8185
</Row>
8286
<Divider />
8387
<Row label="Farcaster">
84-
<Text>username.fc</Text>
85-
</Row>
86-
<Row label="">
87-
<Text>username.farcaster</Text>
88+
<Text>[name].fc / [name].farcaster</Text>
8889
</Row>
8990
<Divider />
9091
<Row label="Lens">
91-
<Text>username.lens</Text>
92+
<Text>[name].lens</Text>
9293
</Row>
9394
<Divider />
9495
<Row label="Unstoppable Domains">
95-
<Text>Valid UDs</Text>
96+
<Text>[name].[domain]</Text>
9697
</Row>
9798
<Divider />
9899
<Row label="ENS">
99-
<Text>
100-
Valid ENS, given it does not resolve to a contract address on
101-
Mainnet
102-
</Text>
100+
<Text>[name].eth</Text>
103101
</Row>
104102
</Box>
105103
),

0 commit comments

Comments
 (0)