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

[feat] adding Dojo Coding event image #19

Merged
merged 1 commit into from
Dec 24, 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
13 changes: 11 additions & 2 deletions components/modules/Fund/Fund.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import FundDonate from "./FundDonate";
import starknetlogo from "@/public/icons/starklogo.png";
import { FundVote } from "./FundVote";

import Image from "next/image";
import { useEffect, useState } from "react";
import { FUND_MANAGER_ADDR, provider, upVotesNeeded } from "@/constants";
import Divider from "@/components/ui/Divider";
Expand All @@ -18,7 +18,7 @@ import { FundWithdraw } from "./FundWithdraw";

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

const ROOT = process.env.NEXT_PUBLIC_APP_ROOT;
const [fund, setFund] = useState<any>({});
const [loading, setLoading] = useState(true);
const [isOwner, setIsOwner] = useState(false);
Expand Down Expand Up @@ -85,6 +85,15 @@ const Fund = () => {
<section>
<h1 className="font-bold text-2xl">{fund.name}</h1>
<Divider />
{/* TODO: remove this once event is finished */}
<Image
src={ROOT + "images/dojo-event.jpg"}
alt="dojo event"
height={771}
width={450}
className="self-center justify-self-center w-2/3 max-w-80 rounded-2xl"
/>
<Divider />
<h2 className="text-xl">Description</h2>
<p>{fund.desc}</p>
<Divider />
Expand Down
1 change: 0 additions & 1 deletion components/modules/confirmation/Confirmation.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client';
import React from "react";
import CreationConfirmation from "./CreationConfirmation";
import DonationConfirmation from "./DonationConfirmation";
import { useAtomValue } from "jotai";
import { latestTxAtom } from "@/state/latestTx";
import Navbar from "@/components/ui/Navbar";
Expand Down
Binary file added public/images/dojo-event.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading