Skip to content

Commit

Permalink
Fix opening links to Content Item, Model.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nes-si committed Oct 11, 2022
1 parent 0c3a810 commit 2524dea
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/containers/MainArea/MainArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function MainArea(props) {
const {models, nav} = props;
const {closeNotification} = props.navActions;

const noSites = nav.initEnded && !models.sites.length;
const noSites = nav.initEnded && !models.currentSite;

return (
<div styleName="wrapper">
Expand All @@ -39,18 +39,18 @@ function MainArea(props) {
<Header />
<div styleName="mainArea">
{noSites ?
<>
<Routes>
<Route path={URL_PROFILE} element={<UserProfile />} />
<Route path={URL_PAY_PLANS} element={<PayPlans />} />
<Route path={URL_PAYMENT_METHODS} element={<PaymentMethods />} />
</Routes>
<div className="start-working">
<InlineSVG className="hammer" src={ImageHammer}/>
Add new site to start working
<div className="hint">Find "Create new site" button in the sidebar</div>
</div>
</>
<Routes>
<Route path={URL_PROFILE} element={<UserProfile />} />
<Route path={URL_PAY_PLANS} element={<PayPlans />} />
<Route path={URL_PAYMENT_METHODS} element={<PaymentMethods />} />
<Route path="*" element={
<div className="start-working">
<InlineSVG className="hammer" src={ImageHammer}/>
Add new site to start working
<div className="hint">Find "Create new site" button in the sidebar</div>
</div>
} />
</Routes>
:
<Routes>
<Route path={URL_PROFILE} element={<UserProfile />} />
Expand Down

0 comments on commit 2524dea

Please sign in to comment.