Skip to content

Commit

Permalink
Merge pull request #791 from Prop-House/revert-790-snca-remove-create…
Browse files Browse the repository at this point in the history
…-round-page

Revert "remove round creation"
  • Loading branch information
cryptoseneca authored May 31, 2024
2 parents 53de42d + 7045355 commit b8c25dc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/prop-house-webapp/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
} from '@rainbow-me/rainbowkit';
import { PropHouseProvider, ipfs } from '@prophouse/sdk-react';
import '@rainbow-me/rainbowkit/styles.css';
import CreateRound from './pages/CreateRound';
import MainApp from './pages/MainApp';
import RoundOrHouseRouter from './components/RoundOrHouseRouter';
import bgColorFor, { BgColorElement } from './utils/bgColorFor';
Expand Down Expand Up @@ -151,6 +152,7 @@ function App() {
path="/create-prop"
element={showCreatePropPage ? <CreateProp /> : <MainApp />}
/>
<Route path="/create-round" element={<CreateRound />} />
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/houses" element={<Communities />} />
<Route path="*" element={<NotFound />} />
Expand Down
13 changes: 13 additions & 0 deletions packages/prop-house-webapp/src/components/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { isMobile } from 'web3modal';
import Button, { ButtonColor } from '../Button';
import bgColorFor, { BgColorElement } from '../../utils/bgColorFor';
import { IoSettingsSharp } from 'react-icons/io5';
import mixpanel from 'mixpanel-browser';

const NavBar = () => {
const location = useLocation();
Expand All @@ -33,6 +34,18 @@ const NavBar = () => {
<Navbar.Collapse id="basic-navbar-nav">
<Nav className={clsx('ms-auto', classes.navBarCollapse)}>
<div className={classes.buttonGroup}>
<Nav.Link as="div" className={classes.connectBtnContainer}>
<Button
text="Create a round"
bgColor={ButtonColor.Purple}
onClick={() => {
mixpanel.track('Clicked Create Round');
navigate('/create-round');
}}
classNames={classes.navBarBtn}
/>
</Nav.Link>

<Nav.Link as="div" className={classes.connectBtnContainer}>
<ConnectButton
showBalance={false}
Expand Down

0 comments on commit b8c25dc

Please sign in to comment.