-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update the authorization technique to check if user role matches ite priority (#488) Co-authored-by: Olasunkanmi Oyinlola <olasunkanmioyinlola@Olasunkanmis-Mac-mini.local> * include roles as a sign up property, add the history menu to the landing page * fix build errors * Development (#492) * update the authorization technique to check if user role matches ite priority * include roles as a sign up property, add the history menu to the landing page * fix build errors * Add landing page background image --------- Co-authored-by: Olasunkanmi Oyinlola <olasunkanmioyinlola@Olasunkanmis-Mac-mini.local> * create the home page and update the sign in Page * Development (#494) * update the authorization technique to check if user role matches ite priority * include roles as a sign up property, add the history menu to the landing page * fix build errors * Add landing page background image --------- Co-authored-by: Olasunkanmi Oyinlola <olasunkanmioyinlola@Olasunkanmis-Mac-mini.local> --------- Co-authored-by: Olasunkanmi Oyinlola <olasunkanmioyinlola@Olasunkanmis-Mac-mini.local>
- Loading branch information
1 parent
bc57270
commit 82fee12
Showing
4 changed files
with
134 additions
and
23 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,28 @@ | ||
import { CSSProperties } from "react"; | ||
import { Button } from "react-bootstrap"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
export const AuthModal = () => { | ||
const navigate = useNavigate(); | ||
const handleSignIn = () => { | ||
navigate("/login"); | ||
}; | ||
const buttonStyle: CSSProperties = { | ||
width: "100%", | ||
margin: "auto", | ||
}; | ||
return ( | ||
<div> | ||
<div style={{ marginBottom: "15px" }}> | ||
<Button onClick={handleSignIn} variant="dark" className="w-10" size="lg" style={buttonStyle}> | ||
Sign In | ||
</Button> | ||
</div> | ||
<div> | ||
<Button variant="outline-dark " className="w-10" size="sm" style={buttonStyle}> | ||
Continue as a Guest | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
}; |
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,28 @@ | ||
import React, { CSSProperties } from "react"; | ||
import { Tabs, Tab } from "react-bootstrap"; | ||
|
||
interface TabProps { | ||
title: string; | ||
children: React.ReactNode; | ||
} | ||
|
||
interface TabComponentProps { | ||
tabs: TabProps[]; | ||
style?: CSSProperties; | ||
} | ||
|
||
export const TabComponent = ({ tabs, style }: Readonly<TabComponentProps>) => { | ||
const renderTabs = () => { | ||
return tabs.map(({ title, children }) => ( | ||
<Tab style={style} key={title} eventKey={title} title={title}> | ||
{children} | ||
</Tab> | ||
)); | ||
}; | ||
|
||
return ( | ||
<Tabs defaultActiveKey={"Email"} className="mb-3"> | ||
{renderTabs()} | ||
</Tabs> | ||
); | ||
}; |