-
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.
Adds PriceRangeStep and DepositAmountsStep adds global classes fixes side tag Adds reset button functionality for pool page fixes errors hides the side tag on mobile fixes txn animation fixes txn animation
- Loading branch information
1 parent
07f1b44
commit 8ea75e0
Showing
37 changed files
with
1,388 additions
and
159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"use client"; | ||
|
||
import { useConfig } from "../../config/hooks/useConfig"; | ||
import { UpRightSquareIcon } from "@repo/ui/icons"; | ||
|
||
interface SideTagProps { | ||
label: string; | ||
} | ||
|
||
/** | ||
* SideTag component to render a side tag with an icon and label. | ||
* @param label | ||
*/ | ||
|
||
export const SideTag = ({ label }: SideTagProps) => { | ||
const { feedbackFormURL } = useConfig(); | ||
|
||
return ( | ||
<div className="hidden md:inline-flex items-center absolute top-1/2 right-0 bg-orange-soft text-white text-xs font-bold translate-x-10 -rotate-90 overflow-hidden"> | ||
<a | ||
href={feedbackFormURL || ''} | ||
target="_blank" | ||
rel="noreferrer" | ||
className="flex items-center gap-2 transition px-3 py-2 text-white hover:bg-black/10 text-base" | ||
> | ||
<span className="w-5 h-5 flex items-center justify-center"> | ||
<UpRightSquareIcon /> | ||
</span> | ||
<span>{label}</span> | ||
</a> | ||
</div> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { | ||
CelestiaIcon, | ||
MilkTiaIcon, | ||
StrideTiaIcon, | ||
UsdcIcon, | ||
WrappedTiaIcon, | ||
} from "@repo/ui/icons"; | ||
import { TokenItem } from "@repo/ui/types"; | ||
|
||
export enum TOKEN_INPUTS { | ||
TOKEN_ONE = "token_one", | ||
TOKEN_TWO = "token_two", | ||
} | ||
|
||
// NOTE: temporary tokens until we have a real token list from a api | ||
export 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 const feeData = [ | ||
{ | ||
id: 0, | ||
feePercent: "0.3%", | ||
text: "Best for most pairs.", | ||
tvl: "100M", | ||
selectPercent: "0.3%", | ||
}, | ||
{ | ||
id: 1, | ||
feePercent: "0.5%", | ||
text: "Best for stable pairs.", | ||
tvl: "100M", | ||
selectPercent: "0.5%", | ||
}, | ||
{ | ||
id: 2, | ||
feePercent: "1%", | ||
text: "Best for high-volatility pairs.", | ||
tvl: "100M", | ||
selectPercent: "1%", | ||
}, | ||
{ | ||
id: 3, | ||
feePercent: "1%", | ||
text: "Best for high-volatility pairs.", | ||
tvl: "100M", | ||
selectPercent: "1%", | ||
}, | ||
]; |
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
Oops, something went wrong.