Skip to content

Commit

Permalink
CHORE: disabled staking, dex, and governance until I rework the custo…
Browse files Browse the repository at this point in the history
…m indexers for them or reconfig the grpc endpoints.
  • Loading branch information
ejmg committed Aug 3, 2024
1 parent 7f13dab commit 5e4467e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ interface CardProps {
children?: React.ReactNode,
className?: string,
heading: string,
disabled?: boolean,
}

const LandingCard: FC<CardProps> = ({ heading, children, className, buttonText, buttonLink }) => {
const LandingCard: FC<CardProps> = ({ heading, children, className, buttonText, buttonLink, disabled = false }) => {
console.log(heading, disabled);
return (
<Card className={className}>
<CardHeader>
<CardTitle className="text-lg font-medium">{heading}</CardTitle>
</CardHeader>
<CardContent className="flex flex-col gap-1 items-center">
{children}
<Button className="w-full" asChild>
<Button className="w-full" variant={ disabled ? "outline" : "default"} disabled={disabled} asChild={!disabled}>
<Link href={buttonLink}>{buttonText}</Link>
</Button>
</CardContent>
Expand Down Expand Up @@ -123,20 +125,23 @@ export default function Home() {
<LandingCard
heading="Staking"
buttonLink="/staking"
buttonText="Explore Staking"
buttonText="Coming Soon..."
className="w-[380px]"
disabled={true}
/>
<LandingCard
heading="Dex"
buttonLink="/dex"
buttonText="Explore Dex"
buttonText="Coming Soon..."
className="w-[380px]"
disabled={true}
/>
<LandingCard
heading="Governance"
buttonLink="/governance"
buttonText="Explore Governance"
buttonText="Coming Soon..."
className="w-[380px]"
disabled={true}
/>
</div>
);
Expand Down
1 change: 1 addition & 0 deletions src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export const Navbar : FC = () => {
</Link>
<div className="flex items-center">
<h1 className={`font-semibold text-2xl ml-1 mr-3 ${workSans.className}`}><Link href="/">Cuiloa</Link></h1>
{/* NOTE: the 5px of padding-top is to better align the smaller text with the text above, please keep it. */}
<p className={`text-link font-medium pt-[5px] ${workSans.className}`}>
<Link href="https://penumbra.zone/" className="">
A Block Explorer For Penumbra
Expand Down

0 comments on commit 5e4467e

Please sign in to comment.