-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SWA-185][FEAT] - Strategies module + "Popular Strategies" tab (#123)
* feat(STK-185): Strategies module + "Popular Strategies" tab --------- Co-authored-by: Berteotti <berteotti2@gmail.com>
- Loading branch information
1 parent
f701e9d
commit 0016c7c
Showing
27 changed files
with
769 additions
and
287 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { Stackbox } from "@/components"; | ||
import { Stackbox, Strategies } from "@/components"; | ||
|
||
export default function Home() { | ||
return ( | ||
<div className="w-full mx-auto"> | ||
<div className="w-full py-10 mx-auto space-y-8"> | ||
<Stackbox /> | ||
<Strategies /> | ||
</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
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
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,21 @@ | ||
import { TokenIcon, TokenLogoSize } from "@/components/TokenIcon"; | ||
import { Token } from "@/models/token"; | ||
|
||
interface TokenLogoPairProps { | ||
buyToken: Token; | ||
buyTokenSize?: TokenLogoSize; | ||
sellToken: Token; | ||
sellTokenSize?: TokenLogoSize; | ||
} | ||
|
||
export const TokenLogoPair = ({ | ||
buyToken, | ||
buyTokenSize = "lg", | ||
sellToken, | ||
sellTokenSize = "xs", | ||
}: TokenLogoPairProps) => ( | ||
<div className="flex items-end"> | ||
<TokenIcon token={buyToken} size={buyTokenSize} /> | ||
<TokenIcon token={sellToken} size={sellTokenSize} className="-ml-2" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
import { ConnectButton } from "./ConnectButton"; | ||
import { Navbar } from "./navbar/Navbar"; | ||
import { SelectNetwork } from "./SelectNetwork"; | ||
import { DialogConfirmTransactionLoading } from "./DialogConfirmTransactionLoading"; | ||
import { StackedTokenLogoPair } from "./StackedTokenLogoPair"; | ||
import TokenPicker from "./token-picker/TokenPicker"; | ||
|
||
export * from "./navbar"; | ||
export * from "./stack-modal"; | ||
export * from "./stackbox"; | ||
export * from "./strategies"; | ||
export * from "./tabs"; | ||
export * from "./token-picker"; | ||
export * from "./BetaNFTModal"; | ||
export * from "./ConnectButton"; | ||
export * from "./DatePicker"; | ||
export * from "./DialogConfirmTransactionLoading"; | ||
export * from "./FromToStackTokenPair"; | ||
export * from "./SelectNetwork"; | ||
export * from "./StacksTable"; | ||
export * from "./TokenIcon"; | ||
export * from "./DatePicker"; | ||
export * from "./stack-modal"; | ||
export * from "./BetaNFTModal"; | ||
|
||
export { | ||
ConnectButton, | ||
Navbar, | ||
SelectNetwork, | ||
TokenPicker, | ||
StackedTokenLogoPair, | ||
DialogConfirmTransactionLoading, | ||
}; | ||
export * from "./TokenLogoPair"; |
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.