vega-frontend-monorepo/apps/token/src/routes/routes.ts

62 lines
1.1 KiB
TypeScript
Raw Normal View History

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,
},
];