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

ui: fixing home screen and removing unused code #38

Merged
merged 2 commits into from
Sep 6, 2023
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
12 changes: 6 additions & 6 deletions packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ export const Header = () => {
const navLinks = (
<>
<li>
<NavLink href="/debug">
<BugAntIcon className="h-4 w-4" />
Debug Contracts
<NavLink href="/age-restricted-example">
<span className="h-4 w-4">🎈</span>
Age restriction with ZK
</NavLink>
</li>
<li>
<NavLink href="/example-zk">
<span className="h-4 w-4">🎈</span>
Age restriction with ZK
<NavLink href="/debug">
<BugAntIcon className="h-4 w-4" />
Debug Contracts
</NavLink>
</li>
<li>
Expand Down
148 changes: 0 additions & 148 deletions packages/nextjs/components/example-ui/ContractData.tsx

This file was deleted.

90 changes: 0 additions & 90 deletions packages/nextjs/components/example-ui/ContractInteraction.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions packages/nextjs/components/example-ui/assets/CopyIcon.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions packages/nextjs/components/example-ui/assets/DiamondIcon.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions packages/nextjs/components/example-ui/assets/HareIcon.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export const BirthDateSignature = ({ aliceDefaultAge }: { aliceDefaultAge: numbe
When the balloon store implemented their zero knowledge proof solution they made sure that they are using the
same format as the Town Hall for constructing the claim that is being signed. In this project the claim
construction for the Town Hall can be found in{" "}
<a href="https://github.com/Kryha/scaffold-eth-2-noir/blob/main/packages/nextjs/pages/example-zk/BirthDateSignature.tsx">
<CodeText text="packages/nextjs/pages/example-zk/BirthDateSignature.tsx" />
<a href="https://github.com/Kryha/scaffold-eth-2-noir/blob/main/packages/nextjs/pages/age-restricted-example/BirthDateSignature.tsx">
<CodeText text="packages/nextjs/pages/age-restricted-example/BirthDateSignature.tsx" />
</a>{" "}
(
<CodeText text="signBirthYear" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import CopyToClipboard from "react-copy-to-clipboard";
import { DocumentDuplicateIcon } from "@heroicons/react/24/outline";
import { shortenHashString } from "~~/utils/example-zk/short-hash-string";
import { shortenHashString } from "~~/utils/age-restricted-example/short-hash-string";

type StatProps = {
stat: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ExampleZk: NextPage = () => {
title="Example UI ZK | Scaffold-ETH 2"
description="Example UI ZK, showing how to use ZK circuits in your UI."
></MetaHeader>
<div className="min-h-screen flex justify-center items-center flex-col">
<div className="min-h-screen flex items-center flex-col pt-6 lg:pt-20">
<ZkSteps />
</div>
</>
Expand Down
Loading
Loading