From 6e03f1f0772c6c7539914c6baee5deeb43881e75 Mon Sep 17 00:00:00 2001 From: pathmapper Date: Thu, 4 Oct 2018 16:42:39 +0200 Subject: [PATCH] get name from package.json --- src/components/Toolbar.jsx | 3 ++- src/styles/_toolbar.scss | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Toolbar.jsx b/src/components/Toolbar.jsx index 77ee1ad..f117537 100644 --- a/src/components/Toolbar.jsx +++ b/src/components/Toolbar.jsx @@ -124,7 +124,8 @@ export default class Toolbar extends React.Component { className="maputnik-toolbar-logo" > Maputnik -

Maputnik +

+ {pkgJson.name} v{pkgJson.version}

diff --git a/src/styles/_toolbar.scss b/src/styles/_toolbar.scss index 70ae986..3a0b348 100644 --- a/src/styles/_toolbar.scss +++ b/src/styles/_toolbar.scss @@ -80,6 +80,10 @@ } } +.maputnik-toolbar-name { + text-transform: capitalize; +} + .maputnik-toolbar-version { font-size: 10px; margin-left: 4px;