-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52ae0d1
commit e0addd4
Showing
45 changed files
with
886 additions
and
779 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,49 @@ | ||
import { CelestiaIcon, MilkTiaIcon, StrideTiaIcon, UsdcIcon, WrappedTiaIcon } from "@repo/ui/icons"; | ||
import { | ||
CelestiaIcon, | ||
MilkTiaIcon, | ||
StrideTiaIcon, | ||
UsdcIcon, | ||
WrappedTiaIcon, | ||
} from "@repo/ui/icons"; | ||
import { IconProps } from "@repo/ui/types"; | ||
|
||
export interface TokenItem { | ||
Icon: React.ComponentType<IconProps>; | ||
title: string; | ||
symbol: string; | ||
} | ||
|
||
// NOTE: temporary tokens until we have a real token list from a api | ||
const tokens: TokenItem[] = [ | ||
{ | ||
Icon: CelestiaIcon, | ||
title: "TIA", | ||
symbol: "TIA", | ||
}, | ||
{ | ||
Icon: WrappedTiaIcon, | ||
title: "Wrapped Celestia", | ||
symbol: "WTIA", | ||
}, | ||
{ | ||
Icon: MilkTiaIcon, | ||
title: "Milk TIA", | ||
symbol: "milkTIA", | ||
}, | ||
{ | ||
Icon: StrideTiaIcon, | ||
title: "Stride TIA", | ||
symbol: "stTIA", | ||
}, | ||
{ | ||
Icon: UsdcIcon, | ||
title: "USDC", | ||
symbol: "USDC", | ||
}, | ||
]; | ||
Icon: React.ComponentType<IconProps>; | ||
title: string; | ||
symbol: string; | ||
} | ||
|
||
export function useTokenModal() { | ||
return { | ||
tokens, | ||
}; | ||
} | ||
// NOTE: temporary tokens until we have a real token list from a api | ||
const tokens: TokenItem[] = [ | ||
{ | ||
Icon: CelestiaIcon, | ||
title: "TIA", | ||
symbol: "TIA", | ||
}, | ||
{ | ||
Icon: WrappedTiaIcon, | ||
title: "Wrapped Celestia", | ||
symbol: "WTIA", | ||
}, | ||
{ | ||
Icon: MilkTiaIcon, | ||
title: "Milk TIA", | ||
symbol: "milkTIA", | ||
}, | ||
{ | ||
Icon: StrideTiaIcon, | ||
title: "Stride TIA", | ||
symbol: "stTIA", | ||
}, | ||
{ | ||
Icon: UsdcIcon, | ||
title: "USDC", | ||
symbol: "USDC", | ||
}, | ||
]; | ||
|
||
export function useTokenModal() { | ||
return { | ||
tokens, | ||
}; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export * from './ActionButton/ActionButton'; | ||
export * from './CopyToClipboardButton/CopyToClipboardButton'; | ||
export * from './Dropdown/Dropdown'; | ||
export * from './AnimatedDownArrowSpacer/AnimatedDownArrowSpacer'; | ||
export * from './Footer/Footer'; | ||
export * from './SideTag/SideTag'; | ||
export * from './TokenSelector/TokenSelector'; | ||
export * from './SettingsPopover/SettingsPopover'; | ||
export * from './InfoTooltip/InfoTooltip'; | ||
export * from './TxnInfo/TxnInfo'; | ||
export * from "./ActionButton/ActionButton"; | ||
export * from "./CopyToClipboardButton/CopyToClipboardButton"; | ||
export * from "./Dropdown/Dropdown"; | ||
export * from "./AnimatedDownArrowSpacer/AnimatedDownArrowSpacer"; | ||
export * from "./Footer/Footer"; | ||
export * from "./SideTag/SideTag"; | ||
export * from "./TokenSelector/TokenSelector"; | ||
export * from "./SettingsPopover/SettingsPopover"; | ||
export * from "./InfoTooltip/InfoTooltip"; | ||
export * from "./TxnInfo/TxnInfo"; |
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,24 +1,26 @@ | ||
import type { IconProps } from "../types"; | ||
|
||
export const ArrowUpDownIcon: React.FC<IconProps> = ({ className = "", size = 24 }) => { | ||
export const ArrowUpDownIcon: React.FC<IconProps> = ({ | ||
className = "", | ||
size = 24, | ||
}) => { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
strokeWidth={1.5} | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
strokeWidth={1.5} | ||
stroke="currentColor" | ||
width={size} | ||
height={size} | ||
className={className} | ||
aria-hidden="true" | ||
|
||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
d="M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5" | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
d="M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5" | ||
/> | ||
</svg> | ||
); | ||
}; | ||
}; |
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,14 +1,17 @@ | ||
import type { IconProps } from "../types"; | ||
|
||
export const CelestiaIcon: React.FC<IconProps> = ({ className = "", size = 24 }) => { | ||
return ( | ||
<div | ||
className={`inline-block bg-contain bg-no-repeat bg-center ${className}`} | ||
style={{ | ||
width: size, | ||
height: size, | ||
backgroundImage: "url(/assets/icons/logos/celestia-logo-color.png)" | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export const CelestiaIcon: React.FC<IconProps> = ({ | ||
className = "", | ||
size = 24, | ||
}) => { | ||
return ( | ||
<div | ||
className={`inline-block bg-contain bg-no-repeat bg-center ${className}`} | ||
style={{ | ||
width: size, | ||
height: size, | ||
backgroundImage: "url(/assets/icons/logos/celestia-logo-color.png)", | ||
}} | ||
/> | ||
); | ||
}; |
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
Oops, something went wrong.