Skip to content

Commit

Permalink
fix storybook type import
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed May 24, 2021
1 parent cec255b commit f53bbfa
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
*/

import React, { ComponentProps, useState } from 'react';
import { StatusFilter, Status } from './status_filter';
import type { AlertStatus } from '../../../common/typings';
import { StatusFilter } from './status_filter';

type Args = ComponentProps<typeof StatusFilter>;

Expand All @@ -19,7 +20,7 @@ export default {
};

export function Example({ onChange }: Args) {
const [status, setStatus] = useState<Status>('open');
const [status, setStatus] = useState<AlertStatus>('open');

return (
<StatusFilter
Expand Down

0 comments on commit f53bbfa

Please sign in to comment.