Skip to content

Commit

Permalink
smol nits
Browse files Browse the repository at this point in the history
  • Loading branch information
codenamejason committed Jun 17, 2024
1 parent bcee65f commit d04bbef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ export default function ViewProgram() {
const programChainId = chainId ? Number(chainId) : chain?.id;

const { program: programToRender, fetchProgramsStatus } = useProgramById(
programChainId!,
programChainId as number,
programId
);
const { fetchRoundStatus } = useRounds(programChainId!, programId);
const { fetchRoundStatus } = useRounds(programChainId as number, programId);
const [programExists] = useState(true);
const [hasAccess] = useState(true);

useEffect(() => {
if (programChainId !== chain?.id) {
switchChain({ connector, chainId: programChainId as number });
}
// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

const operatorWallets: JSX.Element = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function GrantApplications(props: {
};

const TabApplicationCounter = tw.div`
rounded-md
rounded-lg
ml-2
w-8
h-5
Expand Down Expand Up @@ -124,7 +124,7 @@ function GrantApplications(props: {
className={
selected ? "bg-violet-100" : "bg-grey-150"
}
data-testid="received-application-counter"
data-testid="in-review-application-counter"
>
{inReviewApplications?.length || 0}
</TabApplicationCounter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default function ViewRoundPage() {
<span>{"My Programs"}</span>
</Link>
<ChevronRightIcon className="h-6 w-6" />
{/* todo: update to use program id not the round id... */}
<Link to={`/chain/${roundChainId}/program/${id}`}>
<span>{"Program Details"}</span>
</Link>
Expand Down

0 comments on commit d04bbef

Please sign in to comment.