Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Tron icons #190

Merged
merged 1 commit into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/icons/src/components/tron-circle-filled.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as React from 'react';
import AntdIcon from '@ant-design/icons';
import { ReactComponent as SVGComponent } from '../svgs/tron-circle-filled.svg';
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon';

export const TronCircleFilled = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => (
<AntdIcon {...props} ref={ref} component={SVGComponent} />
));
TronCircleFilled.displayName = 'TronCircleFilled';
9 changes: 9 additions & 0 deletions packages/icons/src/components/tron-colorful.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as React from 'react';
import AntdIcon from '@ant-design/icons';
import { ReactComponent as SVGComponent } from '../svgs/tron-colorful.svg';
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon';

export const TronColorful = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => (
<AntdIcon {...props} ref={ref} component={SVGComponent} />
));
TronColorful.displayName = 'TronColorful';
9 changes: 9 additions & 0 deletions packages/icons/src/components/tron-filled.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as React from 'react';
import AntdIcon from '@ant-design/icons';
import { ReactComponent as SVGComponent } from '../svgs/tron-filled.svg';
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon';

export const TronFilled = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => (
<AntdIcon {...props} ref={ref} component={SVGComponent} />
));
TronFilled.displayName = 'TronFilled';
23 changes: 16 additions & 7 deletions packages/icons/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
export * from './components/arbitrum-colorful';
export * from './components/bitcoin-colorful';
export * from './components/bitcoin-filled';
export * from './components/bsc-colorful';
export * from './components/ethereum-colorful';
export * from './components/ethereum-filled';
export * from './components/optimism-colorful';
export * from './components/polygon-colorful';
export * from './components/usdt-filled';
export * from './components/wallet-colorful';
export * from './components/wallet-white-colorful';
export * from './components/etherscan-colorful';
export * from './components/metamask-colorful';
export * from './components/wallectconnect-colorful';
export * from './components/coinbase-wallet-colorful';

export * from './components/usdt-filled';
export * from './components/usdt-circle-filled';

export * from './components/bitcoin-filled';
export * from './components/bitcoin-colorful';
export * from './components/bitcoin-circle-filled';

export * from './components/ethereum-filled';
export * from './components/ethereum-colorful';
export * from './components/ethereum-circle-filled';
export * from './components/usdt-circle-filled';
export * from './components/sui-colorful';

export * from './components/sui-filled';
export * from './components/sui-colorful';
export * from './components/sui-circle-filled';

export * from './components/tron-filled';
export * from './components/tron-colorful';
export * from './components/tron-circle-filled';

export * from './components/chrome-colorful';
11 changes: 11 additions & 0 deletions packages/icons/src/svgs/tron-circle-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/icons/src/svgs/tron-colorful.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/icons/src/svgs/tron-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/icons/src/svgs/usdt-circle-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/web3/src/icons/demos/colorful.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const style = {

const App: React.FC = () => {
return (
<Space>
<Space wrap>
<BitcoinColorful style={style} />
<EthereumColorful style={style} />
<BSCColorful style={style} />
Expand Down
6 changes: 5 additions & 1 deletion packages/web3/src/icons/demos/filled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {
USDTCircleFilled,
SuiFilled,
SuiCircleFilled,
TronFilled,
TronCircleFilled,
} from '@ant-design/web3-icons';
import { Space } from 'antd';

Expand All @@ -16,7 +18,7 @@ const style = {

const App: React.FC = () => {
return (
<Space>
<Space wrap>
<BitcoinFilled style={style} />
<BitcoinCircleFilled style={style} />
<EthereumFilled style={style} />
Expand All @@ -25,6 +27,8 @@ const App: React.FC = () => {
<USDTCircleFilled style={style} />
<SuiFilled style={style} />
<SuiCircleFilled style={style} />
<TronFilled style={style} />
<TronCircleFilled style={style} />
</Space>
);
};
Expand Down