Skip to content

Commit 285d4f3

Browse files
authored
Display version number in storybook
Partial fix for #33
1 parent 62f98b7 commit 285d4f3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@diamondlightsource/sci-react-ui",
3-
"version": "0.0.3",
3+
"version": "0.0.4a",
44
"description": "A theme and component library to make websites at scientific institutions simple to create.",
55
"author": "Diamond Light Source",
66
"license": "ISC",

src/storybook/Introduction.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
import { version } from "../../package.json"
12
import { Meta } from "@storybook/blocks";
23

34
<Meta title="Introduction" />
45

56
<div className="sb-container">
67
<div className='sb-section-title'>
7-
# Scientific React UI Component Library
8+
# Scientific React UI v{version}
89

910
## Introduction
1011

11-
SciReactUI is a collection of useful scientific based components, utilizing Material UI, for your React based
12-
website.
12+
SciReactUI is a collection of useful scientific focused components, utilizing Material UI, to make your React based websites look great.
13+
14+
This storybook displays the components for version <strong>{version}</strong>.
1315
</div>
1416
</div>
1517
<div className="sb-container">

0 commit comments

Comments
 (0)