Skip to content

Commit

Permalink
Merge branch 'dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianvrj authored Oct 29, 2024
2 parents 1b51ecb + 2e062d0 commit ac6644b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
6 changes: 1 addition & 5 deletions frontend/gostarkme-web/app/app/myfunds/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ import { useState } from 'react';
import { useEventListener, useLocalStorage } from 'usehooks-ts'
import { useAtomValue } from 'jotai';
import { walletStarknetkitLatestAtom } from '@/state/connectedWallet';
import { navItems } from '@/constants';

const MyFundsPage = () => {
const wallet = useAtomValue(walletStarknetkitLatestAtom);

const navItems = [
{ label: 'My Profile', href: `/app/myprofile` },
{ label: 'My funds', href: `/app/myfunds` }
];

return (
<div className="min-h-screen flex flex-col">
<Navbar
Expand Down
7 changes: 2 additions & 5 deletions frontend/gostarkme-web/app/app/myprofile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@ import { useEventListener } from 'usehooks-ts';
import { useState } from 'react';
import { walletStarknetkitLatestAtom } from '@/state/connectedWallet';
import { useAtomValue } from 'jotai';
import { navItems } from '@/constants';


const UserProfilePage = () => {

const wallet = useAtomValue(walletStarknetkitLatestAtom);

const navItems = [
{ label: 'My Profile', href: `/app/myprofile` },
{ label: 'My funds', href: `/app/myfunds` }
];

// Mock data for design purposes
const totalDonations = 20000;
const currentLevel = 10;
Expand Down
6 changes: 2 additions & 4 deletions frontend/gostarkme-web/app/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ import { walletStarknetkitLatestAtom } from "@/state/connectedWallet";
import { useAtomValue } from "jotai";
import React, { useEffect, useState } from "react";
import { byteArray, Contract, InvokeFunctionResponse } from "starknet";
import React from "react";
import { navItems } from "@/constants";

const Dashboard = () => {
const navItems = [
{ label: 'My Profile', href: 'app/myprofile' },
{ label: 'My funds', href: '/app/myfunds' }
];

const wallet = useAtomValue(walletStarknetkitLatestAtom);

Expand Down
8 changes: 6 additions & 2 deletions frontend/gostarkme-web/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export const ARGENT_SESSION_SERVICE_BASE_URL =
export const ARGENT_WEBWALLET_URL =
process.env.NEXT_PUBLIC_ARGENT_WEBWALLET_URL || "https://web.argent.xyz"


export const FUND_MANAGER_ADDR =
"0x0263457e0646dc4312c4a583fcae334d98f9b4ff1cf7a9c091649c2bec02543a"
"0x0263457e0646dc4312c4a583fcae334d98f9b4ff1cf7a9c091649c2bec02543a"

export const navItems = [
{ label: 'My Profile', href: '/app/myprofile' },
{ label: 'My funds', href: '/app/myfunds' }
];

0 comments on commit ac6644b

Please sign in to comment.