diff --git a/src/pages/Inventory/Inventory.tsx b/src/pages/Inventory/Inventory.tsx index c4f26fd..68e1022 100644 --- a/src/pages/Inventory/Inventory.tsx +++ b/src/pages/Inventory/Inventory.tsx @@ -64,6 +64,8 @@ const NAV_SECTIONS = [ { label: 'FilterBar', href: '#filterbar' }, { label: 'GroupCard', href: '#groupcard' }, { label: 'LineChart', href: '#linechart' }, + { label: 'LoginDialog', href: '#logindialog' }, + { label: 'LoginForm', href: '#loginform' }, { label: 'MenuItem', href: '#menuitem' }, { label: 'Modal', href: '#modal' }, { label: 'MultiSelect', href: '#multi-select' }, diff --git a/src/pages/Inventory/sections/CompositesSection.tsx b/src/pages/Inventory/sections/CompositesSection.tsx index 7207896..dfde29f 100644 --- a/src/pages/Inventory/sections/CompositesSection.tsx +++ b/src/pages/Inventory/sections/CompositesSection.tsx @@ -16,6 +16,8 @@ import { FilterBar, GroupCard, LineChart, + LoginDialog, + LoginForm, MenuItem, Modal, MultiSelect, @@ -219,6 +221,11 @@ export function CompositesSection() { // MultiSelect const [multiValue, setMultiValue] = useState(['admin']) + // LoginDialog + const [loginDialogOpen, setLoginDialogOpen] = useState(false) + const [loginLoading, setLoginLoading] = useState(false) + const [loginError, setLoginError] = useState() + // 15. Modal const [modalOpen, setModalOpen] = useState(false) @@ -502,6 +509,59 @@ export function CompositesSection() { + {/* LoginDialog */} + +
+ + +
+ { setLoginDialogOpen(false); setLoginError(undefined); setLoginLoading(false) }} + logo={
C
} + title="Sign in to Cameleer" + socialProviders={[ + { label: 'Continue with Google', onClick: () => {} }, + { label: 'Continue with GitHub', onClick: () => {} }, + ]} + onSubmit={() => { + setLoginLoading(true) + setTimeout(() => { setLoginLoading(false); setLoginDialogOpen(false) }, 1500) + }} + onForgotPassword={() => {}} + onSignUp={() => {}} + error={loginError} + loading={loginLoading} + /> +
+ + {/* LoginForm */} + +
+ {} }, + ]} + onSubmit={() => {}} + onForgotPassword={() => {}} + onSignUp={() => {}} + /> +
+
+ {/* 14. MenuItem */}