Skip to content
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
30 changes: 29 additions & 1 deletion apps/namadillo/src/App/Layout/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,35 @@ import { useSetAtom } from "jotai";
import { ReactNode, useEffect, useState } from "react";
import { IoMdClose } from "react-icons/io";
import { twMerge } from "tailwind-merge";
import { TWITTER_URL } from "urls";
import { AppHeader } from "./AppHeader";
import { BurgerButton } from "./BurgerButton";
import { Navigation } from "./Navigation";

const NamadaExploitAlert = (): JSX.Element => (
<div className="mb-2 p-10 rounded-sm bg-yellow">
<div className="font-semibold text-lg">
The Namada protocol has had an exploit and is not currently safe to use.
</div>
<div>
It’s not recommended to interact with the blockchain via Namadillo until
the exploit is fixed.
</div>
<div className="mt-3">
Follow{" "}
<a
href={TWITTER_URL}
target="_blank"
rel="noreferrer"
className="transition-colors duration-300 hover:underline"
>
@Namada
</a>{" "}
on X for updates.
</div>
</div>
);

export const AppLayout = ({
children,
}: {
Expand Down Expand Up @@ -68,7 +93,10 @@ export const AppLayout = ({
<Navigation />
</div>
</aside>
<main className="min-h-full pb-2 flex flex-col flex-1">{children}</main>
<main className="min-h-full pb-2 flex flex-col flex-1">
<NamadaExploitAlert />
{children}
</main>
</div>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/urls.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const DISCORD_URL = "https://discord.com/invite/namada";
export const TWITTER_URL = "https://twitter.com/namada";
export const TWITTER_URL = "https://x.com/namada";

export const githubNamadaInterfaceBaseUrl =
"https://raw.githubusercontent.com/anoma/namada-interface/refs/heads/main";
Expand Down
Loading