-
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.
- Loading branch information
1 parent
669af1d
commit c786ac5
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
apps/client/src/components/Pages/OrganizationSettingsPage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { BsBuildingGear, BsChevronLeft, BsPencil, BsTrash } from 'react-icons/bs'; | ||
import { Link, useNavigate, useParams } from 'react-router-dom'; | ||
import OrganizationSettingsSection from '../../OrganizationSettingsSection'; | ||
import useOrganizationDetails from '../../hooks/useOrganisationDetails'; | ||
import { Utils } from '../../utils'; | ||
import Button from '../Button'; | ||
import Container from '../Container'; | ||
import EntityActionsRow from '../Entity/EntityActionsRow'; | ||
import EntityInfoTable from '../Entity/EntityInfoTable'; | ||
import HeaderWithHint from '../HeaderWithHint'; | ||
import IconButton from '../IconButton'; | ||
import DashboardLayout from '../Layout/DasboardLayout'; | ||
import Loader from '../Loader'; | ||
import { SecondaryNavbar } from '../SecondaryNavbar'; | ||
import WarehousesList from '../WarehousesList'; | ||
|
||
function OrganizationSettingsPage() { | ||
const { id } = useParams(); | ||
const { organization, isLoading, error } = useOrganizationDetails(id); | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<DashboardLayout> | ||
<SecondaryNavbar | ||
icon={BsBuildingGear} | ||
title={`${organization?.name} - settings`} | ||
actions={ | ||
<Link to=".."> | ||
<Button className="flex items-center gap-3"> | ||
<BsChevronLeft size={20} /> | ||
Go back | ||
</Button> | ||
</Link> | ||
} | ||
/> | ||
<Loader | ||
isLoading={isLoading} | ||
isError={error != undefined} | ||
> | ||
<Container> | ||
<div>form</div> | ||
</Container> | ||
</Loader> | ||
</DashboardLayout> | ||
); | ||
} | ||
|
||
export default OrganizationSettingsPage; |
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