Skip to content
Snippets Groups Projects
Commit 1632899a authored by Sivert Kronen Hatteberg's avatar Sivert Kronen Hatteberg
Browse files

Remove unused component

parent c125b91d
No related branches found
No related tags found
1 merge request!174Updated header and footer
Pipeline #101215 failed
import { appInst } from 'appConfig'
import UiOLogoBar from './UiO'
import UiBLogoBar from './UiB'
function LogoBar() {
switch (appInst) {
case 'uio':
return <UiOLogoBar />
case 'uib':
return <UiBLogoBar />
default:
return <UiOLogoBar />
}
}
export default LogoBar
import React from 'react'
import Box from '@mui/material/Box'
function UiBLogoBar() {
return (
<Box
sx={{
backgroundColor: 'palette.secondary',
}}
>
<Box
sx={{
margin: '0 auto',
maxWidth: 'greg.appMaxWidth',
}}
>
Insert UiB logo here
</Box>
</Box>
)
}
export default UiBLogoBar
import React from 'react'
import Box from '@mui/material/Box'
import { styled } from '@mui/material/styles'
import { useTranslation } from 'react-i18next'
type Language = {
language: string
}
const Logo = styled('div')<Language>(({ language }) => ({
background:
language === 'en'
? 'url("/uio/uio-app-logo-en.png") left center no-repeat'
: 'url("/uio/uio-app-logo-nb.png") left center no-repeat',
minWidth: '20rem',
height: '2rem',
}))
function UiOLogoBar() {
const { i18n } = useTranslation(['common', 'footer'])
return (
<Box
sx={{
backgroundColor: (theme) => theme.palette.primary.main,
display: 'flex',
justifyContent: 'center',
}}
>
<Logo language={i18n.language} />
</Box>
)
}
export default UiOLogoBar
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment