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

chore: added new banner #202

Merged
merged 2 commits into from
Dec 30, 2024
Merged
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
476 changes: 285 additions & 191 deletions public/banners/endur.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
476 changes: 285 additions & 191 deletions public/banners/endur_mobile.svg
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/banners/strkfarm_braavos.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
import { isMobile } from 'react-device-detect';

const banner_images = [
{
desktop: '/banners/strkfarm_braavos.jpg',
mobile: '/banners/strkfarm_braavos.jpg',
link: 'https://x.com/strkfarm/status/1871870516686209314',
},
{
desktop: '/banners/endur.svg',
mobile: '/banners/endur_mobile.svg',
Expand All @@ -46,7 +51,7 @@
export default function Home() {
const [tabIndex, setTabIndex] = useState(0);

const { address } = useAccount();

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

View workflow job for this annotation

GitHub Actions / Performs linting, formatting on the application

'address' is assigned a value but never used. Allowed unused vars must match /^_/u
const searchParams = useSearchParams();
const size = useWindowSize();
const router = useRouter();
Expand Down Expand Up @@ -126,7 +131,7 @@
<Link href={banner.link} isExternal>
<ChakraImage
src={
(!isMobile && size.width > 450) || size.width == 0

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

View workflow job for this annotation

GitHub Actions / Performs linting, formatting on the application

Expected '===' and instead saw '=='
? banner.desktop
: banner.mobile
}
Expand Down
12 changes: 6 additions & 6 deletions src/store/endur.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import { atom } from 'jotai';

import RewardsAbi from '@/abi/rewards.abi.json';

import { IDapp } from './IDapp.store';
import { Category, PoolInfo, PoolType } from './pools';
import CONSTANTS, { provider } from '@/constants';
import { getTokenInfoFromName } from '@/utils';
import { StrategyLiveStatus } from '@/strategies/IStrategy';
import { Contract } from 'starknet';
import MyNumber from '@/utils/MyNumber';
import { AutoXSTRKStrategy } from '@/strategies/auto_xstrk.strat';
import { StrategyLiveStatus } from '@/strategies/IStrategy';
import { getTokenInfoFromName } from '@/utils';
import { customAtomWithFetch } from '@/utils/customAtomWithFetch';
import { customAtomWithQuery } from '@/utils/customAtomWithQuery';
import MyNumber from '@/utils/MyNumber';
import { Contract } from 'starknet';
import { IDapp } from './IDapp.store';
import { Category, PoolInfo, PoolType } from './pools';

interface PoolData {
tvl: number;
Expand Down
8 changes: 4 additions & 4 deletions src/store/protocols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ import strkfarmLogo from '@public/logo.png';
import { atom } from 'jotai';
import CarmineAtoms, { carmine } from './carmine.store';
import EkuboAtoms, { ekubo } from './ekobu.store';
import EndurAtoms, { endur } from './endur.store';
import HaikoAtoms, { haiko } from './haiko.store';
import HashstackAtoms, { hashstack } from './hashstack.store';
import MySwapAtoms, { mySwap } from './myswap.store';
import NimboraDexAtoms, { nimboraDex } from './nimboradex.store';
import NostraDegenAtoms, { nostraDegen } from './nostradegen.store';
import NostraDexAtoms, { nostraDex } from './nostradex.store';
import NostraLendingAtoms, { nostraLending } from './nostralending.store';
import VesuAtoms, { vesu } from './vesu.store';
import ZkLendAtoms, { zkLend } from './zklend.store';
import NimboraDexAtoms, { nimboraDex } from './nimboradex.store';
import { Category, PoolInfo, PoolType } from './pools';
import { getLiveStatusEnum } from './strategies.atoms';
import STRKFarmAtoms, {
strkfarm,
STRKFarmStrategyAPIResult,
} from './strkfarm.atoms';
import EndurAtoms, { endur } from './endur.store';
import VesuAtoms, { vesu } from './vesu.store';
import ZkLendAtoms, { zkLend } from './zklend.store';

export const PROTOCOLS = [
{
Expand Down
Loading