"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/grafana-ui/src/components/Forms/Legacy/Switch/Switch.story.internal.tsx" between
grafana-8.0.0.tar.gz and grafana-8.0.1.tar.gz

About: Grafana is a visualization tool for monitoring, metric analytics and dashboards for Graphite, InfluxDB, Prometheus and many more.

Switch.story.internal.tsx  (grafana-8.0.0):Switch.story.internal.tsx  (grafana-8.0.1)
import React, { useState } from 'react'; import React, { useState } from 'react';
import { Props, Switch } from './Switch'; import { Props, Switch } from './Switch';
import { Meta, Story } from '@storybook/react'; import { Meta, Story } from '@storybook/react';
export default { export default {
title: 'Forms/Legacy/Switch', title: 'Forms/Legacy/Switch',
component: Switch, component: Switch,
parameters: { parameters: {
knobs: {
disable: true,
},
controls: { controls: {
exclude: ['className', 'labelClass', 'switchClass'], exclude: ['className', 'labelClass', 'switchClass'],
}, },
}, },
} as Meta; } as Meta;
const SwitchWrapper: Story<Props> = ({ label, ...args }) => { const SwitchWrapper: Story<Props> = ({ label, ...args }) => {
const [checked, setChecked] = useState(false); const [checked, setChecked] = useState(false);
return <Switch {...args} label={label} checked={checked} onChange={() => setCh ecked(!checked)} />; return <Switch {...args} label={label} checked={checked} onChange={() => setCh ecked(!checked)} />;
}; };
 End of changes. 1 change blocks. 
3 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)