Skip to content

Commit

Permalink
Fix missing logo (#863)
Browse files Browse the repository at this point in the history
Fixes #861
This should hopefully address the last item in the below issue of the
missing logo.
I tested it locally and it seems to be working as expected, I hope this
will be the case once deployed.
- #861
  • Loading branch information
HarelM authored Jan 12, 2024
1 parent a62db14 commit 1da65f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/AppToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {detect} from 'detect-browser';

import {MdFileDownload, MdOpenInBrowser, MdSettings, MdLayers, MdHelpOutline, MdFindInPage} from 'react-icons/md'
import pkgJson from '../../package.json'

//@ts-ignore
import maputnikLogo from 'maputnik-design/logos/logo-color.svg?inline'

// This is required because of <https://stackoverflow.com/a/49846426>, there isn't another way to detect support that I'm aware of.
const browser = detect();
Expand Down Expand Up @@ -195,7 +196,7 @@ export default class AppToolbar extends React.Component<AppToolbarProps> {
rel="noreferrer noopener"
href="https://github.com/maplibre/maputnik"
>
<img src="node_modules/maputnik-design/logos/logo-color.svg" />
<img src={maputnikLogo} alt="Maputnik on GitHub" />
<h1>
<span className="maputnik-toolbar-name">{pkgJson.name}</span>
<span className="maputnik-toolbar-version">v{pkgJson.version}</span>
Expand Down

0 comments on commit 1da65f2

Please sign in to comment.