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

fix: remove navbar banner #855

Merged
merged 1 commit into from
Feb 28, 2024
Merged
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
11 changes: 1 addition & 10 deletions src/AppContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { NetworkBar, Overlay } from "@tradetrust-tt/tradetrust-ui-components";
import { Overlay } from "@tradetrust-tt/tradetrust-ui-components";
import React, { useEffect, useState } from "react";
import { useLocation } from "react-router-dom";
import { Footer } from "./components/Layout/Footer";
import { NavigationBar, leftNavItems, rightNavItems } from "./components/Layout/NavigationBar";
import { IS_DEVELOPMENT } from "./config";
import { Routes, routes } from "./routes";

const AppContainer = (): React.ReactElement => {
const location = useLocation();
const [toggleNavBar, setToggleNavBar] = useState(false);
const V2_URL: string = IS_DEVELOPMENT ? "https://dev.v2.tradetrust.io/" : "https://v2.tradetrust.io";

useEffect(() => {
setToggleNavBar(false);
Expand All @@ -18,13 +16,6 @@ const AppContainer = (): React.ReactElement => {

return (
<div className="flex flex-col min-h-full" data-location={location.pathname}>
<NetworkBar network="true">
Token Registry V2 is no longer supported, visit{" "}
<a className="hover:text-cerulean-50" href={V2_URL}>
{V2_URL}
</a>{" "}
to verify V2 transferable documents
</NetworkBar>
<NavigationBar
toggleNavBar={toggleNavBar}
setToggleNavBar={setToggleNavBar}
Expand Down
Loading