Skip to content

Commit

Permalink
refactor(ui): spinner playground and documentation refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
32penkin authored Aug 28, 2019
1 parent 324995a commit 2decd53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/framework/ui/spinner/spinner.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type SpinnerElement = React.ReactElement<SpinnerProps>;
* Default is `medium`.
*
* @property {string} status - Determines the status of the component.
* Can be `primary`, `success`, `info`, `warning` or `danger`.
* Can be `primary`, `success`, `info`, `warning`, `danger` or `alternative`.
* Default is `primary`.
*
* @overview-example Simple Usage
Expand All @@ -54,7 +54,7 @@ export type SpinnerElement = React.ReactElement<SpinnerProps>;
* import { Spinner } from 'react-native-ui-kitten';
*
* export const SpinnerShowcase = () => (
* <Spinner />
* <Spinner />
* );
* ```
*
Expand Down
16 changes: 4 additions & 12 deletions src/playground/src/ui/screen/spinner/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,10 @@ const dangerSpinner: ComponentShowcaseItem = {
},
};

const blackSpinner: ComponentShowcaseItem = {
title: 'Black',
const alternativeSpinner: ComponentShowcaseItem = {
title: 'Alternative',
props: {
status: 'black',
},
};

const whiteSpinner: ComponentShowcaseItem = {
title: 'White',
props: {
status: 'white',
status: 'alternative',
},
};

Expand All @@ -108,8 +101,7 @@ const statusSection: ComponentShowcaseSection = {
infoSpinner,
warningSpinner,
dangerSpinner,
blackSpinner,
whiteSpinner,
alternativeSpinner,
],
};

Expand Down

0 comments on commit 2decd53

Please sign in to comment.