Add loading state

This commit is contained in:
fragosti
2018-07-20 09:16:55 -07:00
parent cdcf624e9e
commit f27084ced4
3 changed files with 4 additions and 3 deletions

View File

@@ -6,5 +6,5 @@ export interface AllowanceStateToggleProps {}
const flip = () => Math.random() < 0.5;
export const AllowanceStateToggle: React.StatelessComponent<AllowanceStateToggleProps> = () => (
<AllowanceStateView allowanceState={flip() ? 'locked' : 'unlocked'} />
<AllowanceStateView allowanceState={flip() ? 'locked' : 'loading'} />
);