Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix: adapt demo to new interface
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed May 24, 2018
1 parent 5248cca commit 3020227
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/property-items/asset-item/demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AssetItem from './index';
import AssetItem, { AssetPropertyInputType } from './index';
import * as React from 'react';
import styled from 'styled-components';

Expand All @@ -12,13 +12,19 @@ const StyledDemo = styled.div`
const AssetItemDemo: React.StatelessComponent<void> = (): JSX.Element => (
<div>
<StyledDemo>
<AssetItem label="Empty" />
<AssetItem
label="Empty"
inputType={AssetPropertyInputType.File}
inputValue=""
imageSrc=""
/>
</StyledDemo>
<StyledDemo>
<AssetItem
onChooseClick={NOOP}
onClearClick={NOOP}
onInputChange={NOOP}
inputType={AssetPropertyInputType.File}
label="Internal"
imageSrc="http://icons.iconarchive.com/icons/paomedia/small-n-flat/1024/light-bulb-icon.png"
/>
Expand All @@ -28,8 +34,10 @@ const AssetItemDemo: React.StatelessComponent<void> = (): JSX.Element => (
onChooseClick={NOOP}
onClearClick={NOOP}
onInputChange={NOOP}
inputType={AssetPropertyInputType.Url}
label="External"
inputValue="http://icons.iconarchive.com/icons/paomedia/small-n-flat/1024/light-bulb-icon.png"
imageSrc="http://icons.iconarchive.com/icons/paomedia/small-n-flat/1024/light-bulb-icon.png"
/>
</StyledDemo>
</div>
Expand Down

0 comments on commit 3020227

Please sign in to comment.