vega-frontend-monorepo/apps/token/src/routes/routes.ts
Dexter Edwards b8ff3d3050
feat(2093): token sub nav (#2549)
* feat: implement subnav using exisitng DD component

* chore: make nav as per design

* chore: fix conflicts

* style: make css for trigger match designs

* chore: add border to subnav card

* chore: reogranise files

* chore: remove unused imports

* fix: minor rendering errors

* test: add first tests

* chore: fix failing tests from nav update

* test: add unit tests for nav

* style: lint

* style: make navbar theme work properly

* style: lint

* chore: remove unnecessary click on header

* fix: move route config to ts only file

* test: tidy up test logic

* feat: add nav drop down to ui toolkit

* fix: broken routing in places

* style: lint

Co-authored-by: Joe <joe@vega.xyz>
2023-01-12 11:45:22 +00:00

62 lines
1.1 KiB
TypeScript

const Routes = {
HOME: '/',
CLAIM: '/claim',
VALIDATORS: '/validators',
REWARDS: '/rewards',
PROPOSALS: '/proposals',
PROPOSALS_REJECTED: '/proposals/rejected',
NOT_PERMITTED: '/not-permitted',
NOT_FOUND: '/not-found',
CONTRACTS: '/contracts',
TOKEN: '/token',
REDEEM: '/token/redeem',
WITHDRAWALS: '/token/withdraw',
SUPPLY: '/token/tranches',
ASSOCIATE: '/validators/associate',
DISASSOCIATE: '/validators/disassociate',
};
export default Routes;
export const TOP_LEVEL_ROUTES = [
{
name: 'Proposals',
path: Routes.PROPOSALS,
},
{
name: 'Validators',
path: Routes.VALIDATORS,
},
{
name: 'Rewards',
path: Routes.REWARDS,
},
];
export const TOKEN_DROPDOWN_ROUTES = [
{
name: 'Token',
path: Routes.TOKEN,
},
{
name: 'Supply & Vesting',
path: Routes.SUPPLY,
},
{
name: 'Withdraw',
path: Routes.WITHDRAWALS,
},
{
name: 'Redeem',
path: Routes.REDEEM,
},
{
name: 'Associate',
path: Routes.ASSOCIATE,
},
{
name: 'Disassociate',
path: Routes.DISASSOCIATE,
},
];