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

Bean UI - Migration Preview Page #1080

Merged
merged 17 commits into from
Sep 11, 2024
3 changes: 3 additions & 0 deletions projects/ui/src/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import VotingPowerPage from '~/pages/governance/votingPower';
import MorningUpdater from '~/state/beanstalk/sun/morning';
import MorningFieldUpdater from '~/state/beanstalk/field/morning';
import BeanstalkCaseUpdater from '~/state/beanstalk/case/updater';
import MigrationPreview from '../../pages/preview';
// import Snowflakes from './theme/winter/Snowflakes';

BigNumber.set({ EXPONENTIAL_AT: [-12, 20] });
Expand Down Expand Up @@ -203,6 +204,8 @@ export default function App() {
<Route path="governance/vp/:id" element={<VotingPowerPage />} />
<Route path="/silo" element={<SiloPage />} />
<Route path="/silo/:address" element={<SiloTokenPage />} />
<Route path="/preview" element={<MigrationPreview />} />
<Route path="/preview/:address" element={<MigrationPreview />} />
<Route path="/swap" element={<SwapPage />} />
<Route path="/404" element={<PageNotFound />} />
<Route path="*" element={<PageNotFound />} />
Expand Down
7 changes: 7 additions & 0 deletions projects/ui/src/components/Nav/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import disclosuresIcon from '~/img/beanstalk/interface/nav/disclosures.svg';
import analyticsIcon from '~/img/beanstalk/interface/nav/stats.svg';
import basinIcon from '~/img/beanstalk/interface/nav/basin.svg';
import pipelineIcon from '~/img/beanstalk/interface/nav/pipeline.svg';
import migrationIcon from '~/img/beanstalk/interface/nav/migration.svg';

export type RouteData = {
/** Nav item title */
Expand Down Expand Up @@ -83,6 +84,12 @@ const ROUTES: { [key in RouteKeys]: RouteData[] } = {
icon: governanceIcon,
small: true,
},
{
path: '/preview',
title: 'Migration Preview',
icon: migrationIcon,
small: true,
},
{
path: 'docs',
href: 'https://docs.bean.money/almanac',
Expand Down
1 change: 1 addition & 0 deletions projects/ui/src/img/beanstalk/interface/nav/migration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading