Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Add timezone to withServicesKnob helper
Browse files Browse the repository at this point in the history
  • Loading branch information
sareh committed Apr 15, 2020
1 parent 69345c9 commit 66d1147
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ storiesOf('Components|RadioSchedule/StartTime', module)
.addDecorator(withServicesKnob())
.add(
'default',
({ locale, script, service, dir }) => {
({ locale, script, service, dir, timezone = 'Europe/London' }) => {
return (
<StartTime
timestamp={storiesUnixTimestamp}
timezone="Europe/London"
timezone={timezone}
locale={locale}
script={script}
service={service}
Expand Down
1 change: 1 addition & 0 deletions packages/utilities/psammead-storybook-helpers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 8.3.0 | [PR#x](https://github.com/bbc/psammead/pull/x) Adding timezone to withServicesKnob helper |
| 8.2.7 | [PR#3270](https://github.com/bbc/psammead/pull/3270) Security fixes |
| 8.2.6 | [PR#3279](https://github.com/bbc/psammead/pull/3279) Add `selectedService` to withServicesKnob `storyProps` |
| 8.2.5 | [PR#3135](https://github.com/bbc/psammead/pull/3135) Talos - Bump Dependencies - @bbc/gel-foundations |
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/utilities/psammead-storybook-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-storybook-helpers",
"version": "8.2.7",
"version": "8.3.0",
"main": "dist/index.js",
"module": "esm/index.js",
"sideEffects": false,
Expand Down
Loading

0 comments on commit 66d1147

Please sign in to comment.