Skip to content

Commit

Permalink
Merge pull request #43 from akiraonstarknet/combine-pools
Browse files Browse the repository at this point in the history
Combine strategies with pools and update filter style
  • Loading branch information
akiraonstarknet authored Sep 6, 2024
2 parents 336ff42 + 2bad86e commit 9af60a6
Show file tree
Hide file tree
Showing 22 changed files with 1,156 additions and 944 deletions.
6 changes: 3 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
const nextConfig = {
// output: 'export',
compiler: {
removeConsole: {
exclude: ['error'],
},
// removeConsole: {
// exclude: ['error'],
// },
},
async rewrites() {
return [
Expand Down
1 change: 1 addition & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,5 @@ body {

td, th {
border-color: var(--chakra-colors-bg) !important;
vertical-align: top;
}
18 changes: 9 additions & 9 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function Home() {
}

function handleTabsChange(index: number) {
if (index === 1) {
if (index === 0) {
setRoute('pools');
} else {
setRoute('strategies');
Expand All @@ -80,9 +80,9 @@ export default function Home() {
(async () => {
const tab = searchParams.get('tab');
if (tab === 'pools') {
setTabIndex(1);
} else {
setTabIndex(0);
} else {
setTabIndex(1);
}
})();
}, [searchParams]);
Expand Down Expand Up @@ -184,19 +184,19 @@ export default function Home() {
color="light_grey"
_selected={{ color: 'purple' }}
onClick={() => {
mixpanel.track('Strategies opened');
mixpanel.track('All pools clicked');
}}
>
Strategies✨
Find yields
</Tab>
<Tab
color="light_grey"
_selected={{ color: 'purple' }}
onClick={() => {
mixpanel.track('All pools clicked');
mixpanel.track('Strategies opened');
}}
>
Find yields
Strategies✨
</Tab>
</TabList>
<TabIndicator
Expand All @@ -208,10 +208,10 @@ export default function Home() {
/>
<TabPanels>
<TabPanel bg="highlight" width={'100%'} float={'left'}>
<Strategies />
<Pools />
</TabPanel>
<TabPanel bg="highlight" float={'left'} width={'100%'}>
<Pools />
<Strategies />
</TabPanel>
</TabPanels>
</Tabs>
Expand Down
Loading

0 comments on commit 9af60a6

Please sign in to comment.