Skip to content

Commit

Permalink
add margin trading menu
Browse files Browse the repository at this point in the history
  • Loading branch information
xieqian committed Feb 25, 2024
1 parent f093923 commit f95be6b
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/Header/menuData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ export const mainMenuList: Imenu[] = [
allLinks: ["/", "/markets", "/tokenDetail/[id]"],
icon: <MarketIcon />,
},
{
title: "Margin Trading",
link: "/marginTrading",
allLinks: ["/marginTrading", "/trading"],
icon: <MarketIcon />,
},
{ title: "Dashboard", link: "/dashboard", allLinks: ["/dashboard"], icon: <DashboardIcon /> },
{ title: "Staking", link: "/staking", allLinks: ["/staking"], icon: <StakeIcon /> },
];
Expand Down
3 changes: 3 additions & 0 deletions pages/marginTrading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import MarginTradingPage from "../screens/MarginTrading";

export default MarginTradingPage;
3 changes: 3 additions & 0 deletions pages/trading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import TradingPage from "../screens/Trading";

export default TradingPage;
13 changes: 13 additions & 0 deletions screens/MarginTrading/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { useAppDispatch } from "../../redux/hooks";
import { LayoutBox } from "../../components/LayoutContainer/LayoutContainer";

const MarginTrading = () => {
const dispatch = useAppDispatch();
return (
<LayoutBox className="flex flex-col items-center justify-center">
maring trading list page
</LayoutBox>
);
};

export default MarginTrading;
Empty file added screens/MarginTrading/svg.tsx
Empty file.
11 changes: 11 additions & 0 deletions screens/Trading/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { useAppDispatch } from "../../redux/hooks";
import { LayoutBox } from "../../components/LayoutContainer/LayoutContainer";

const Trading = () => {
const dispatch = useAppDispatch();
return (
<LayoutBox className="flex flex-col items-center justify-center">trading action page</LayoutBox>
);
};

export default Trading;
Empty file added screens/Trading/svg.tsx
Empty file.

0 comments on commit f95be6b

Please sign in to comment.