Skip to content

Commit

Permalink
fix: export Size type and merged imports
Browse files Browse the repository at this point in the history
  • Loading branch information
joeychrys committed Apr 9, 2022
1 parent bd8ebbb commit 55c9cdf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/rating/RatingContext.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { ComponentProps } from 'react';
import { createContext, useContext } from 'react';
import { ComponentProps, createContext, useContext } from 'react';

export type Size = 'sm' | 'md' | 'lg';

export type RatingContext = ComponentProps<'svg'> & {
size?: string;
size?: Size;
};

export const RatingContext = createContext<RatingContext | undefined>(undefined);
Expand Down

0 comments on commit 55c9cdf

Please sign in to comment.