-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(unlock-app): Enhance dashboard header (#14881)
* enhance dashboard header * cleanup * update settings layout * maintain consistent menu items
- Loading branch information
Showing
2 changed files
with
48 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,7 @@ | ||
import { ReactNode } from 'react' | ||
|
||
import DashboardHeader from '~/components/interface/layouts/index/DashboardHeader' | ||
import DashboardFooter from '~/components/interface/layouts/index/DashboardFooter' | ||
import TermsOfServiceModal from '~/components/interface/layouts/index/TermsOfServiceModal' | ||
import { Container } from '~/components/interface/Container' | ||
import { ConnectModal } from '~/components/interface/connect/ConnectModal' | ||
import { AuthRequired } from 'app/Components/ProtectedContent' | ||
|
||
export default function SettingsLayout({ children }: { children: ReactNode }) { | ||
return ( | ||
<div className="overflow-hidden bg-ui-secondary-200"> | ||
<TermsOfServiceModal /> | ||
<Container> | ||
<ConnectModal /> | ||
|
||
<DashboardHeader /> | ||
|
||
<div className="flex flex-col gap-10 min-h-screen"> | ||
<AuthRequired>{children}</AuthRequired> | ||
</div> | ||
|
||
<DashboardFooter /> | ||
</Container> | ||
</div> | ||
) | ||
return <AuthRequired>{children}</AuthRequired> | ||
} |
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