Merge pull request #407 from pathmapper/get-name

Get name from package.json
This commit is contained in:
Orange Mug 2018-10-04 18:15:42 +01:00 committed by GitHub
commit df457fc7bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -124,7 +124,8 @@ export default class Toolbar extends React.Component {
className="maputnik-toolbar-logo" className="maputnik-toolbar-logo"
> >
<img src={logoImage} alt="Maputnik" /> <img src={logoImage} alt="Maputnik" />
<h1>Maputnik <h1>
<span className="maputnik-toolbar-name">{pkgJson.name}</span>
<span className="maputnik-toolbar-version">v{pkgJson.version}</span> <span className="maputnik-toolbar-version">v{pkgJson.version}</span>
</h1> </h1>
</a> </a>

View file

@ -80,6 +80,10 @@
} }
} }
.maputnik-toolbar-name {
text-transform: capitalize;
}
.maputnik-toolbar-version { .maputnik-toolbar-version {
font-size: 10px; font-size: 10px;
margin-left: 4px; margin-left: 4px;