-
Notifications
You must be signed in to change notification settings - Fork 1
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 #164 from wri/epic/new_design
Epic/New Style Add Config Talwind, add icons, add fonts and edit/add style componentes
- Loading branch information
Showing
359 changed files
with
18,885 additions
and
3,753 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import DownloadIcon from "@mui/icons-material/GetApp"; | ||
import { Button, CreateButton, TopToolbar } from "react-admin"; | ||
import { When } from "react-if"; | ||
|
||
interface ListActionsCreateProps { | ||
onExport?: () => void; | ||
} | ||
|
||
const ListActionsCreate = ({ onExport }: ListActionsCreateProps) => ( | ||
<TopToolbar> | ||
<CreateButton className="filter-button-page-admin" /> | ||
<When condition={!!onExport}> | ||
<Button className="button-page-admin" label="Export" startIcon={<DownloadIcon />} onClick={onExport} /> | ||
</When> | ||
</TopToolbar> | ||
); | ||
|
||
export default ListActionsCreate; |
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
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,63 @@ | ||
import classNames from "classnames"; | ||
import { Menu } from "react-admin"; | ||
import { useLocation } from "react-router-dom"; | ||
|
||
import modules from "../modules"; | ||
|
||
const AppMenu = () => { | ||
const location = useLocation(); | ||
const hash = location.pathname.split("/")[1]; | ||
return ( | ||
<Menu className="!w-full"> | ||
<div className={classNames({ "Sidebar-active": hash === "user" })}> | ||
<Menu.ResourceItem name={modules.user.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "organisation" })}> | ||
<Menu.ResourceItem name={modules.organisation.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "pitch" })}> | ||
<Menu.ResourceItem name={modules.pitch.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "fundingProgramme" })}> | ||
<Menu.ResourceItem name={modules.fundingProgramme.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "reportingFramework" })}> | ||
<Menu.ResourceItem name={modules.reportingFramework.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "application" })}> | ||
<Menu.ResourceItem name={modules.application.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "stage" })}> | ||
<Menu.ResourceItem name={modules.stage.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "form" })}> | ||
<Menu.ResourceItem name={modules.form.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "project" })}> | ||
<Menu.ResourceItem name={modules.project.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "site" })}> | ||
<Menu.ResourceItem name={modules.site.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "nursery" })}> | ||
<Menu.ResourceItem name={modules.nursery.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "task" })}> | ||
<Menu.ResourceItem name={modules.task.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "projectReport" })}> | ||
<Menu.ResourceItem name={modules.projectReport.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "siteReport" })}> | ||
<Menu.ResourceItem name={modules.siteReport.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "nurseryReport" })}> | ||
<Menu.ResourceItem name={modules.nurseryReport.ResourceName} /> | ||
</div> | ||
<div className={classNames({ "Sidebar-active": hash === "audit" })}> | ||
<Menu.ResourceItem name={modules.audit.ResourceName} /> | ||
</div> | ||
</Menu> | ||
); | ||
}; | ||
export default AppMenu; |
24 changes: 13 additions & 11 deletions
24
src/admin/components/ResourceTabs/InformationTab/components/InformationTabRow.tsx
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
Oops, something went wrong.