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

Added Vercel link of the UI calculator #69

Open
wants to merge 20 commits into
base: dev
Choose a base branch
from
Open
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
148,049 changes: 148,049 additions & 0 deletions .yarn/releases/yarn-1.22.22.cjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


yarn-path ".yarn/releases/yarn-1.22.22.cjs"
26,341 changes: 19,976 additions & 6,365 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@
"react-hot-toast": "^2.4.1",
"react-mixpanel": "1.0.5",
"react-pro-sidebar": "1.1.0",
"react-responsive": "^10.0.0",
"react-responsive-carousel": "3.2.23",
"react-select": "5.8.0",
"react-share": "5.1.0",
"recharts": "^2.12.7",
"sharp": "^0.33.4",
"starknet": "6.4.1",
"starknetkit": "1.1.9",
Expand Down
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/strk-text-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';

import tg from '@/assets/tg.svg';
import { Calculator } from '@/components/Calculator';
import Pools from '@/components/Pools';
import Strategies from '@/components/Strategies';
import CONSTANTS from '@/constants';
Expand Down Expand Up @@ -37,6 +38,8 @@
console.log('tab', tab);
if (tab === 'pools') {
setTabIndex(1);
} else if (tab === 'calculator') {
setTabIndex(2);
} else {
setTabIndex(0);
}
Expand All @@ -51,6 +54,8 @@
function handleTabsChange(index: number) {
if (index === 1) {
setRoute('pools');
} else if (index === 2) {
setRoute('calculator');
} else {
setRoute('strategies');
}
Expand Down Expand Up @@ -98,6 +103,15 @@
>
Find yields
</Tab>
<Tab
color="light_grey"
_selected={{ color: 'color2Text' }}
onClick={() => {
mixpanel.track('Calculator opened');
}}
>
Calculator
</Tab>
</TabList>
<TabIndicator
mt="-1.5px"
Expand All @@ -113,12 +127,15 @@
<TabPanel bg="highlight" float={'left'} width={'100%'}>
<Pools />
</TabPanel>
<TabPanel bg="highlight" float={'left'} width={'100%'}>
<Calculator />
</TabPanel>
</TabPanels>
</Tabs>
{/* <hr style={{width: '100%', borderColor: '#5f5f5f', float: 'left', margin: '20px 0'}}/> */}
<Center padding="10px 0" width={'100%'} float={'left'}>
<Link href={CONSTANTS.COMMUNITY_TG} isExternal>
<Image src={tg.src} width="50" margin="0 auto" />

Check warning on line 138 in src/app/page.tsx

View workflow job for this annotation

GitHub Actions / Performs linting, formatting on the application

Image elements must have an alt prop, either with meaningful text, or an empty string for decorative images
</Link>
</Center>
<Center width={'100%'} float="left">
Expand Down
Loading
Loading