diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index d399a1b61..68461183f 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -1,4 +1,4 @@ -import { ShieldCheckIcon, UsersIcon } from '@heroicons/react/20/solid'; +import { ShieldCheckIcon, UsersIcon, HomeIcon } from '@heroicons/react/20/solid'; import Image from 'next/image'; import Link from 'next/link'; import classNames from 'classnames'; @@ -12,11 +12,17 @@ export const Sidebar = (props: { isOpen: boolean; setIsOpen: any }) => { const { asPath } = useRouter(); const menus = [ + { + href: '/admin/dashboard', + text: 'Dashboard', + icon: HomeIcon, + active: asPath.includes('/admin/dashboard'), + }, { href: '/admin/connection', - text: 'SSO Connections', + text: 'Enterprise SSO', icon: ShieldCheckIcon, - active: asPath.includes('/admin/saml'), + active: asPath.includes('/admin/connection'), }, { href: '/admin/directory-sync', diff --git a/components/connection/AddEdit.tsx b/components/connection/AddEdit.tsx index 7c7c69e81..cb15fb7d7 100644 --- a/components/connection/AddEdit.tsx +++ b/components/connection/AddEdit.tsx @@ -268,14 +268,14 @@ const AddEdit = ({ connection }: AddEditProps) => { return ( <> - + Back

- {isEditView ? 'Edit Connection' : 'Create Connection'} + {isEditView ? 'Edit SSO Connection' : 'Create SSO Connection'}

{!isEditView && (
@@ -388,7 +388,7 @@ const AddEdit = ({ connection }: AddEditProps) => { readOnly={readOnly} maxLength={maxLength} onChange={getHandleChange()} - className={`textarea textarea-bordered h-24 w-full ${ + className={`textarea-bordered textarea h-24 w-full ${ isArray ? 'whitespace-pre' : '' }`} rows={rows} @@ -408,7 +408,7 @@ const AddEdit = ({ connection }: AddEditProps) => { readOnly={readOnly} maxLength={maxLength} onChange={getHandleChange({ key: 'checked' })} - className='checkbox checkbox-primary ml-5 align-middle' + className='checkbox-primary checkbox ml-5 align-middle' /> ) : ( @@ -421,7 +421,7 @@ const AddEdit = ({ connection }: AddEditProps) => { readOnly={readOnly} maxLength={maxLength} onChange={getHandleChange()} - className='input input-bordered w-full' + className='input-bordered input w-full' /> )}
@@ -429,7 +429,7 @@ const AddEdit = ({ connection }: AddEditProps) => { } )}
-

{

+
+ + + + + + + + ); +}; + +Login.getLayout = function getLayout(page: ReactElement) { + return {page}; +}; + +export const getServerSideProps = async (context: GetServerSidePropsContext) => { + return { + props: { + csrfToken: await getCsrfToken(context), + }, + }; +}; + +export default Login; diff --git a/pages/admin/connection/index.tsx b/pages/admin/connection/index.tsx index 543844fce..cf9309eaa 100644 --- a/pages/admin/connection/index.tsx +++ b/pages/admin/connection/index.tsx @@ -31,9 +31,9 @@ const Connections: NextPage = () => { return (
-

Connections

+

Enterprise SSO

- + + New Connection @@ -95,7 +95,7 @@ const Connections: NextPage = () => {