forked from JumboCode/TheLegacyProject
-
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
820221b
commit 7e01f10
Showing
46 changed files
with
229 additions
and
292 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,45 @@ | ||
import { ISideBar } from "@components/Sidebar"; | ||
import { CollapsibleSidebarContainer } from "@components/container"; | ||
import { | ||
faEnvelope, | ||
faHome, | ||
faHouseLock, | ||
faUser, | ||
} from "@fortawesome/free-solid-svg-icons"; | ||
|
||
interface IAdminLayout { | ||
children: React.ReactNode; | ||
} | ||
|
||
const AdminLayout = ({ children }: IAdminLayout) => { | ||
const buttons: ISideBar["buttons"] = [ | ||
{ | ||
name: "Home", | ||
link: `/private/admin/home`, | ||
icon: faHome, | ||
}, | ||
{ | ||
name: "Pending", | ||
link: `/private/admin/pending-chapters`, | ||
icon: faHouseLock, | ||
}, | ||
{ | ||
name: "E-list", | ||
link: `/private/admin/elist`, | ||
icon: faEnvelope, | ||
}, | ||
{ | ||
name: "Profile", | ||
link: `/private/admin/edit-profile`, | ||
icon: faUser, | ||
}, | ||
]; | ||
|
||
return ( | ||
<CollapsibleSidebarContainer buttons={buttons}> | ||
{children} | ||
</CollapsibleSidebarContainer> | ||
); | ||
}; | ||
|
||
export default AdminLayout; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,41 @@ | ||
import { ISideBar } from "@components/Sidebar"; | ||
import { CollapsibleSidebarContainer } from "@components/container"; | ||
import { faHome, faUser, faUserGroup } from "@fortawesome/free-solid-svg-icons"; | ||
|
||
interface IUserLayout { | ||
children: React.ReactNode; | ||
} | ||
|
||
const UserLayout = ({ children }: IUserLayout) => { | ||
const buttons: ISideBar["buttons"] = [ | ||
{ | ||
name: "Home", | ||
link: `/private/chapter-leader/home`, | ||
icon: faHome, | ||
}, | ||
{ | ||
name: "Members", | ||
link: `/private/chapter-leader/users`, | ||
icon: faUserGroup, | ||
}, | ||
// @TODO(nickbar01234) - Fix icon | ||
{ | ||
name: "Seniors", | ||
link: `/private/chapter-leader/seniors`, | ||
icon: faUserGroup, | ||
}, | ||
{ | ||
name: "Profile", | ||
link: `/private/chapter-leader/edit-profile`, | ||
icon: faUser, | ||
}, | ||
]; | ||
|
||
return ( | ||
<CollapsibleSidebarContainer buttons={buttons}> | ||
{children} | ||
</CollapsibleSidebarContainer> | ||
); | ||
}; | ||
|
||
export default UserLayout; |
File renamed without changes.
File renamed without changes.
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.