Skip to content

Commit

Permalink
Use 'Public Maps'
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeorge committed Jan 26, 2024
1 parent 3533ee6 commit f130a47
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
8 changes: 6 additions & 2 deletions app/assets/scripts/components/common/user-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ function UserDropdown() {
</DropdownItem>
</li>
<li>
<DropdownItem as={StyledLink} to='/all-maps' useIcon='folder'>
All Maps
<DropdownItem
as={StyledLink}
to='/public-maps'
useIcon='folder'
>
Public Maps
</DropdownItem>
</li>
{userAccessLevel === 'admin' && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
InpageBody,
InpageBodyInner,
} from '../../styles/inpage';
import { StyledNavLink } from '../../styles/links';

import App from '../common/app';
import PageHeader from '../common/page-header';
Expand Down Expand Up @@ -167,17 +166,7 @@ function ExportedMapsList() {
<InpageHeader>
<InpageHeaderInner>
<SharesHeadline>
<InpageTitle>Shares</InpageTitle>
<Button
forwardedAs={StyledNavLink}
to='/project/new'
variation='primary-plain'
size='large'
useIcon='plus'
title='Start a new project'
>
New Project
</Button>
<InpageTitle>Public Maps</InpageTitle>
</SharesHeadline>
</InpageHeaderInner>
</InpageHeader>
Expand All @@ -186,9 +175,6 @@ function ExportedMapsList() {
{shares &&
(shares.length ? (
<>
<Heading size='small'>
{!isLoading ? 'Exported Maps' : 'Loading...'}
</Heading>
<Table
headers={HEADERS}
data={shares}
Expand Down
4 changes: 2 additions & 2 deletions app/assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import theme from './styles/theme';

import Home from './components/home';
import Explore from './components/explore';
import AllMaps from './components/all-maps';
import PublicMaps from './components/public-maps';
import ShareMap from './components/share-map';
import About from './components/about';
import UhOh from './components/uhoh';
Expand Down Expand Up @@ -61,7 +61,7 @@ function Root() {
<Switch>
<Route exact path='/' component={Home} />
<Route exact path='/share/:uuid/map' component={ShareMap} />
<Route exact path='/all-maps' component={AllMaps} />
<Route exact path='/public-maps' component={PublicMaps} />
<ProtectedRoute
path='/project-old/:projectId'
component={Explore}
Expand Down

0 comments on commit f130a47

Please sign in to comment.