Skip to content

Commit

Permalink
disable CT for bridge 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vihsonic committed Dec 12, 2024
2 parents f06120f + 31cd8aa commit 6b2fbf5
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 25 deletions.
25 changes: 15 additions & 10 deletions src/app/pools/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@ import YourPools from "@/pools/YourPools";
import { CTBetaWarning } from "@/staging/components/cross-trade/components/core/comfirm/CTBetaWarning";
import ComingPools from "@/staging/components/cross-trade/components/core/coming/pool";
import CrossTrade from "@/staging/components/cross-trade/components/core/main";
import { BRIDGE_VERSION } from "@/staging/constants/legacyTitan";
import { LegacyTitanBridgeVersionEnum } from "@/staging/types/legacyTitan";

import { Flex } from "@chakra-ui/react";

export default function Page() {
return (
/** original code @Robert */
// <Flex pt={"134px"} justifyContent={"center"} h={"100%"}>
// <YourPools />
// </Flex>
<>
<CrossTrade />
<CTBetaWarning />
</>
);
if (BRIDGE_VERSION === LegacyTitanBridgeVersionEnum.V01) {
return (
/** original code @Robert */
// <Flex pt={"134px"} justifyContent={"center"} h={"100%"}>
// <YourPools />
// </Flex>
<>
<CrossTrade />
<CTBetaWarning />
</>
);
}
return <></>;
}
30 changes: 20 additions & 10 deletions src/components/header/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,27 @@ import WARNING_ICON from "assets/icons/pool/unsupportedNetworkWarning.svg";
import { useGetMode } from "@/hooks/mode/useGetMode";
import { accountDrawerStatus } from "@/recoil/modal/atom";
import { useRecoilValue } from "recoil";
import { BRIDGE_VERSION } from "@/staging/constants/legacyTitan";
import { LegacyTitanBridgeVersionEnum } from "@/staging/types/legacyTitan";

const menuList = [
{
title: "Bridge & Swap",
link: "/",
},
{
title: "Liquidity",
link: "/pools",
},
];
const menuList =
BRIDGE_VERSION === LegacyTitanBridgeVersionEnum.V01
? [
{
title: "Bridge & Swap",
link: "/",
},
{
title: "Liquidity",
link: "/pools",
},
]
: [
{
title: "Bridge & Swap",
link: "/",
},
];

const HeaderMenu = (props: {
title: string;
Expand Down
2 changes: 0 additions & 2 deletions src/staging/components/legacy-titan/Banner11.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const Banner11Component = () => {
>
here
</a>
. The exact date will be announced soon.
</Text>
</Flex>
<Flex>
Expand Down Expand Up @@ -77,7 +76,6 @@ export const Banner11Component = () => {
>
here
</a>
. The exact date will be announced soon.
</Text>
</Flex>
<Flex>
Expand Down
1 change: 1 addition & 0 deletions src/staging/components/legacy-titan/Banner110.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const Banner110Component: React.FC = () => {
py={"10px"}
borderRadius={"8px"}
bg={"#DD3A44"}
mb={"48px"}
>
<Flex flexDir={"column"}>
<Text fontSize={"14px"} color={"#FFF"} fontWeight={500}>
Expand Down
6 changes: 3 additions & 3 deletions src/staging/constants/legacyTitan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
export const BRIDGE_VERSION: LegacyTitanBridgeVersionEnum =
LegacyTitanBridgeVersionEnum.V01;
export const LegacyTitanMaintenanceStatus: LegacyTitanMaintenanceEnum =
LegacyTitanMaintenanceEnum.DONE;
LegacyTitanMaintenanceEnum.IN_PROGRESS;
export const BridgeShutdownDate = new Date("2025-01-20");
export const TitanShutdownDate = new Date("2024-12-30");
export const TitanMaintenanceDate = new Date("2024-12-30T00:00:00.000Z");
export const TitanShutdownDate = new Date("2024-12-27");
export const TitanMaintenanceDate = new Date("2024-12-27T00:00:00.000Z");

0 comments on commit 6b2fbf5

Please sign in to comment.