Skip to content

Commit

Permalink
Bean UI - Migration Preview Page (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeanstalkFarmsOperations authored Sep 11, 2024
2 parents 307bcf2 + 96ef7da commit 11c6944
Show file tree
Hide file tree
Showing 4 changed files with 998 additions and 0 deletions.
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

0 comments on commit 11c6944

Please sign in to comment.