Skip to content

Commit

Permalink
Updated app copy
Browse files Browse the repository at this point in the history
  • Loading branch information
pindaroso committed Oct 16, 2024
1 parent 663780e commit da55ecb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
19 changes: 9 additions & 10 deletions packages/app/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import CreateCounterButton from '@/components/buttons/create-counter'
import IncrementCounterButton from '@/components/buttons/increment-counter'
import DeleteCounterButton from '@/components/buttons/delete-counter'
import DecrementCounterButton from '@/components/buttons/decrement-counter'
import CalculateCostButton from '@/components/buttons/calculate-cost'
import CalculateCostSavingsButton from '@/components/buttons/calculate-cost'

declare global {
interface window {
Expand Down Expand Up @@ -117,10 +117,10 @@ export default function Home() {
Solana ZK Starter
</Link>
<Link
className={hash === '#/cost' ? 'text-primary' : ''}
href="#/cost"
className={hash === '#/calculator' ? 'text-primary' : ''}
href="#/calculator"
>
Cost Calculator
Cost Savings Calculator
</Link>
<Link
className={hash === '#/counter' ? 'text-primary' : ''}
Expand Down Expand Up @@ -259,8 +259,8 @@ export default function Home() {
</nav>
<main className="flex-grow">
<div className="flex flex-col max-w-md mx-auto p-4 gap-2">
{hash === '#/cost' && (
<CalculateCostButton className="flex flex-col mt-2" />
{hash === '#/calculator' && (
<CalculateCostSavingsButton className="flex flex-col mt-2" />
)}
{hash === '#/faucet' && (
<AirdropButton className="flex flex-col mt-2" />
Expand All @@ -280,10 +280,9 @@ export default function Home() {
</>
)}
{hash === '' && (
<div className="flex flex-col mt-2">
<h1 className="text-primary text-xl text-center">
Solana ZK Starter
</h1>
<div className="flex flex-col mt-2 text-center gap-2">
<h1 className="text-primary text-4xl">zkgm</h1>
<p>Say hello to your new zk compresison app.</p>
</div>
)}
</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/components/buttons/calculate-cost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import toast from 'react-hot-toast'
import { useWalletContext } from '@/components/providers/wallet'
import { Button } from '@/components/ui/button'

export const CalculateCostButton: FC<{ className?: string }> = ({
export const CalculateCostSavingsButton: FC<{ className?: string }> = ({
className,
}) => {
const { publicKey } = useWallet()
Expand All @@ -31,4 +31,4 @@ export const CalculateCostButton: FC<{ className?: string }> = ({
)
}

export default CalculateCostButton
export default CalculateCostSavingsButton

0 comments on commit da55ecb

Please sign in to comment.