Skip to content

Commit

Permalink
Fix new type definitions, clean up some props
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Jan 22, 2018
1 parent 2217976 commit c593b30
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/form/radio/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ declare module '@elastic/eui' {
Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> & {
options?: EuiRadioGroupOption[];
idSelected?: string;
onChange: (id: string) => void;
onChange: EuiRadioGroupChangeCallback;
};

export type x = EuiRadioGroupProps['onChange'];
Expand Down
6 changes: 5 additions & 1 deletion src/components/loading/loading_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export const EuiLoadingChart = ({ size, mono, className, ...rest }) => {
};

EuiLoadingChart.propTypes = {
size: PropTypes.oneOf(SIZES),
mono: PropTypes.bool,
size: PropTypes.oneOf(SIZES)
};

EuiLoadingChart.defaultProps = {
mono: false
};
2 changes: 1 addition & 1 deletion src/components/progress/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ declare module '@elastic/eui' {
| 'accent'
| 'danger'
| 'primary'
| 'secondar'
| 'secondary'
| 'subdued';

export type EuiProgressSize = 'xs' | 's' | 'm' | 'l';
Expand Down
1 change: 0 additions & 1 deletion src/components/progress/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ EuiProgress.propTypes = {
color: PropTypes.oneOf(COLORS),
position: PropTypes.oneOf(POSITIONS),
max: PropTypes.number,
indeterminate: PropTypes.bool,
};

EuiProgress.defaultProps = {
Expand Down

0 comments on commit c593b30

Please sign in to comment.