Skip to content

Commit 3d6d7c6

Browse files
authored
feat(sui): rename SuiWallet to Slush (#1440)
* feat(sui): rename SuiWallet to Slush * feat(icons): add SlishCircleFilled icon and update Slush wallet metadata * test: written snap * fix: correct icon name and add SlushCircleFilled icon - Updated the icon reference in the Slush wallet metadata from SlishCircleFilled to SlushCircleFilled. - Added the SlushCircleFilled icon component and its corresponding SVG file. - Updated the index to export the new SlushCircleFilled icon.
1 parent ecb4492 commit 3d6d7c6

File tree

16 files changed

+603
-532
lines changed

16 files changed

+603
-532
lines changed

.changeset/fluffy-moons-think.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@ant-design/web3-assets': minor
3+
'@ant-design/web3': minor
4+
'@ant-design/web3-sui': minor
5+
---
6+
7+
feat(sui):rename SuiWallet to Slush

docs/guide/demos/try-it-out/sui.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import type { ConnectModalProps } from '@ant-design/web3';
33
import { ConnectButton, Connector } from '@ant-design/web3';
4-
import { Suiet, SuiWallet, SuiWeb3ConfigProvider } from '@ant-design/web3-sui';
4+
import { Slush, Suiet, SuiWeb3ConfigProvider } from '@ant-design/web3-sui';
55
import type { ConfigProviderProps } from 'antd';
66

77
type SizeType = ConfigProviderProps['componentSize'];
@@ -15,7 +15,7 @@ interface Props {
1515

1616
const App: React.FC<Props> = ({ mode, size, quickConnect, buttonType }) => {
1717
return (
18-
<SuiWeb3ConfigProvider balance autoConnect wallets={[Suiet(), SuiWallet()]}>
18+
<SuiWeb3ConfigProvider balance autoConnect wallets={[Suiet(), Slush()]}>
1919
<Connector
2020
modalProps={{
2121
mode,

packages/assets/src/wallets/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ export * from './unisat-wallet';
1212
export * from './backpack';
1313
export * from './trust';
1414
export * from './mobile-wallet';
15-
export * from './sui-wallet';
15+
export * from './slush';
1616
export * from './suiet';
1717
export * from './solflare';

packages/assets/src/wallets/slush.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import type { WalletMetadata } from '@ant-design/web3-common';
2+
import { ChromeCircleColorful, SlushCircleFilled } from '@ant-design/web3-icons';
3+
4+
export const metadata_Slush: WalletMetadata = {
5+
name: 'Slush',
6+
remark: 'Slush',
7+
icon: <SlushCircleFilled />,
8+
app: {
9+
link: 'https://slush.app/',
10+
},
11+
extensions: [
12+
{
13+
key: 'Chrome',
14+
browserIcon: <ChromeCircleColorful />,
15+
browserName: 'Chrome',
16+
link: 'chromewebstore.google.com/detail/opcgpfmipidbgpenhmajoajpbobppdil',
17+
description: 'Access your wallet right from your favorite web browser.',
18+
},
19+
],
20+
};

packages/assets/src/wallets/sui-wallet.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)