Skip to content

Commit

Permalink
Merge pull request #495 from entur/fix/small-dashboard-header-fixes
Browse files Browse the repository at this point in the history
Små endringer i DashboardHeader
  • Loading branch information
magnusrand authored Oct 19, 2021
2 parents 9fdacad + e05d174 commit 6bb7106
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/Header/DashboardHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ export function DashboardHeader(): JSX.Element | null {
if (!settings) return null
const { logo, logoSize, description } = settings

const headerLogo = logo ? (
<img src={logo} height={logoSize} />
) : (
const headerLogo = (
<Link to="/">
<TavlaLogo className="header__logo-wrapper__logo" />
{logo ? (
<img src={logo} height={logoSize} />
) : (
<TavlaLogo className="header__logo-wrapper__logo" />
)}
</Link>
)

Expand Down
1 change: 1 addition & 0 deletions src/components/Header/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: baseline;
margin: 0 4rem 1rem 4rem;
padding-top: 2rem;
overflow: hidden;
Expand Down

0 comments on commit 6bb7106

Please sign in to comment.