-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from Vizzuality/SKY30-245-change-wording-from…
…-analysis-to-modelling-in-the-modelling-panel [SKY30-245] Change wording from analysis to modelling in the modelling panel
- Loading branch information
Showing
13 changed files
with
113 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { useAtomValue } from 'jotai'; | ||
|
||
import { modellingAtom } from '../../store'; | ||
|
||
import BackButton from './back-button'; | ||
import ModellingButtons from './modelling-buttons'; | ||
import ModellingIntro from './modelling-intro'; | ||
import ModellingWidget from './widget'; | ||
|
||
const SidebarModelling: React.FC = () => { | ||
const { status: modellingStatus } = useAtomValue(modellingAtom); | ||
|
||
const showIntro = modellingStatus === 'idle'; | ||
const showButtons = ['success', 'error'].includes(modellingStatus); | ||
|
||
return ( | ||
<> | ||
<div className="h-full w-full overflow-y-scroll border-x border-black pb-12"> | ||
<div className="border-b border-black px-4 pt-4 pb-2 md:px-8"> | ||
<h1 className="text-5xl font-black"> | ||
{showIntro ? 'Marine Conservation Modelling' : 'Custom Area'} | ||
</h1> | ||
<div className="my-2">{showButtons && <ModellingButtons />}</div> | ||
</div> | ||
{showIntro && <ModellingIntro />} | ||
{!showIntro && <ModellingWidget />} | ||
</div> | ||
<div className="absolute bottom-0 left-px"> | ||
<BackButton /> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default SidebarModelling; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.