Skip to content

Commit

Permalink
style: Add outlet wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mheggelund committed Sep 20, 2023
1 parent d49a6e0 commit 3192f86
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/App.styled.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import styled from 'styled-components'

const StyledOutletWrapper = styled.section`
height: calc(100% - 200px);
overflow: scroll;
`
export { StyledOutletWrapper as OutletWrapper }
7 changes: 6 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import {
useMsal,
} from '@azure/msal-react'
import { Outlet } from 'react-router-dom'
import * as Styled from './App.styled'
import AppBar from './features/AppBar/AppBar'
import { Footer } from './features/Footer/Footer'

export function App() {
const { instance } = useMsal()
Expand All @@ -15,7 +17,10 @@ export function App() {
<AppBar title="PEPM" />
<p>Authenticated</p>
<button onClick={() => instance.logoutRedirect()}>Log out</button>
<Outlet />
<Styled.OutletWrapper>
<Outlet />
</Styled.OutletWrapper>
<Footer footerText="All information is proprietary of Equinor © 2023 Equinor ASA" />
</AuthenticatedTemplate>
<UnauthenticatedTemplate>
<p>Not authenticated</p>
Expand Down

0 comments on commit 3192f86

Please sign in to comment.