Skip to content

Commit

Permalink
build: multi-level nesting in storybook (#58)
Browse files Browse the repository at this point in the history
* build: multi-level nesting in storybook

* feat: select country

* fix: config

* fix: minor
  • Loading branch information
kristw authored and zhaoyongjie committed Nov 17, 2021
1 parent 438c757 commit a339d5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ addParameters({
addonPanelInRight: false,
enableShortcuts: false,
goFullScreen: false,
hierarchyRootSeparator: null,
hierarchySeparator: /\|/,
selectedAddonPanel: undefined, // The order of addons in the "Addon panel" is the same as you import them in 'addons.js'. The first panel will be opened by default as you run Storybook
showAddonPanel: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* eslint-disable no-magic-numbers */
import React from 'react';
import { SuperChart } from '@superset-ui/chart';
import { select } from '@storybook/addon-knobs';
import data from './data';
import countries from '../../../../superset-ui-legacy-plugin-chart-country-map/lib/countries';

export default [
{
Expand All @@ -12,7 +14,7 @@ export default [
formData: {
linearColorScheme: 'schemeRdYlBu',
numberFormat: '.3s',
selectCountry: 'France',
selectCountry: select('Country', Object.keys(countries), 'france', 'country'),
},
height: 400,
payload: { data },
Expand Down

0 comments on commit a339d5a

Please sign in to comment.