-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove remaining old icon libraries
- Loading branch information
Showing
20 changed files
with
188 additions
and
69 deletions.
There are no files selected for viewing
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
4 changes: 2 additions & 2 deletions
4
src/app/components/crypto-assets/stacks/components/stacks-unanchored-status-icon.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { TransactionTypeIconWrapper } from '@app/components/transaction/transaction-type-icon-wrapper'; | ||
import { MicroblockIcon } from '@app/ui/components/icons/microblock-icon'; | ||
import { ZapIcon } from '@app/ui/components/icons/zap-icon'; | ||
|
||
export function StacksUnanchoredStatusIcon() { | ||
return <TransactionTypeIconWrapper bg="invert" icon={<MicroblockIcon bg="stacks" />} />; | ||
return <TransactionTypeIconWrapper bg="invert" icon={<ZapIcon bg="stacks" size="xs" />} />; | ||
} |
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
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
6 changes: 2 additions & 4 deletions
6
src/app/pages/select-network/components/network-status-indicator.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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
// TODO get new icon for this / migrate | ||
import { FiCloudOff as IconCloudOff } from 'react-icons/fi'; | ||
|
||
import { CheckmarkIcon } from '@app/ui/components/icons/checkmark-icon'; | ||
import { CloudOffIcon } from '@app/ui/components/icons/cloud-off-icon'; | ||
|
||
interface NetworkStatusIndicatorProps { | ||
isActive: boolean; | ||
isOnline: boolean; | ||
} | ||
export function NetworkStatusIndicator({ isActive, isOnline }: NetworkStatusIndicatorProps) { | ||
return !isOnline ? <IconCloudOff /> : isActive ? <CheckmarkIcon /> : null; | ||
return !isOnline ? <CloudOffIcon /> : isActive ? <CheckmarkIcon /> : null; | ||
} |
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,23 @@ | ||
import { Square, SquareProps } from 'leather-styles/jsx'; | ||
|
||
import { Svg } from '../svg'; | ||
|
||
export function CircleIcon({ size = 'sm', ...props }: SquareProps) { | ||
return ( | ||
<Square size={size} {...props}> | ||
<Svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="square" | ||
strokeLinejoin="arcs" | ||
> | ||
<circle cx="12" cy="12" r="10"></circle> | ||
</Svg> | ||
</Square> | ||
); | ||
} |
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,24 @@ | ||
import { Square, SquareProps } from 'leather-styles/jsx'; | ||
|
||
import { Svg } from '../svg'; | ||
|
||
// TODO: This svg was copied from react-icons temporarily | ||
export function CloudOffIcon({ size = 'sm', ...props }: SquareProps) { | ||
return ( | ||
<Square size={size} {...props}> | ||
<Svg | ||
viewBox="0 0 24 24" | ||
width="24" | ||
height="24" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
fill="none" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
> | ||
<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path> | ||
<line x1="1" y1="1" x2="23" y2="23"></line> | ||
</Svg> | ||
</Square> | ||
); | ||
} |
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,14 @@ | ||
import { Square } from 'leather-styles/jsx'; | ||
|
||
import { Svg } from '../svg'; | ||
|
||
// TODO: This svg was copied from mdi-react temporarily | ||
export function FunctionIcon({ size = 'xs', ...props }) { | ||
return ( | ||
<Square size={size} {...props}> | ||
<Svg width="12px" height="12px" fill="currentColor" viewBox="0 0 24 24"> | ||
<path d="M15.6,5.29C14.5,5.19 13.53,6 13.43,7.11L13.18,10H16V12H13L12.56,17.07C12.37,19.27 10.43,20.9 8.23,20.7C6.92,20.59 5.82,19.86 5.17,18.83L6.67,17.33C6.91,18.07 7.57,18.64 8.4,18.71C9.5,18.81 10.47,18 10.57,16.89L11,12H8V10H11.17L11.44,6.93C11.63,4.73 13.57,3.1 15.77,3.3C17.08,3.41 18.18,4.14 18.83,5.17L17.33,6.67C17.09,5.93 16.43,5.36 15.6,5.29Z"></path> | ||
</Svg> | ||
</Square> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
import { Square, SquareProps } from 'leather-styles/jsx'; | ||
|
||
import { Svg } from '../svg'; | ||
|
||
export function RotateLeftIcon({ size = 'sm', ...props }: SquareProps) { | ||
return ( | ||
<Square size={size} {...props}> | ||
<Svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="square" | ||
strokeLinejoin="arcs" | ||
> | ||
<path d="M2.5 2v6h6M2.66 15.57a10 10 0 1 0 .57-8.38" /> | ||
</Svg> | ||
</Square> | ||
); | ||
} |
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,23 @@ | ||
import { Square, SquareProps } from 'leather-styles/jsx'; | ||
|
||
import { Svg } from '../svg'; | ||
|
||
export function StarIcon({ size = 'sm', ...props }: SquareProps) { | ||
return ( | ||
<Square size={size} {...props}> | ||
<Svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="square" | ||
strokeLinejoin="arcs" | ||
> | ||
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon> | ||
</Svg> | ||
</Square> | ||
); | ||
} |
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,26 @@ | ||
import { Square, SquareProps } from 'leather-styles/jsx'; | ||
|
||
import { Svg } from '../svg'; | ||
|
||
export function TrashIcon({ size = 'sm', ...props }: SquareProps) { | ||
return ( | ||
<Square size={size} {...props}> | ||
<Svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="square" | ||
strokeLinejoin="arcs" | ||
> | ||
<polyline points="3 6 5 6 21 6"></polyline> | ||
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path> | ||
<line x1="10" y1="11" x2="10" y2="17"></line> | ||
<line x1="14" y1="11" x2="14" y2="17"></line> | ||
</Svg> | ||
</Square> | ||
); | ||
} |
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,23 @@ | ||
import { Square, SquareProps } from 'leather-styles/jsx'; | ||
|
||
import { Svg } from '../svg'; | ||
|
||
// TODO: This svg was copied from react-icons temporarily | ||
export function ZapIcon({ size = 'sm', ...props }: SquareProps) { | ||
return ( | ||
<Square size={size} {...props}> | ||
<Svg | ||
viewBox="0 0 24 24" | ||
width="24" | ||
height="24" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
fill={props.fill ?? 'none'} | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
> | ||
<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon> | ||
</Svg> | ||
</Square> | ||
); | ||
} |
Oops, something went wrong.