Add arrow controls

pull/1/head
Daniel Gasienica 7 years ago
parent f0895af6dc
commit 2cb0b0aeb1

@ -42,4 +42,16 @@
@include color-svg('../images/x.svg', white); @include color-svg('../images/x.svg', white);
} }
} }
&.previous {
&:before {
@include color-svg('../images/back.svg', white);
}
}
&.next {
&:before {
@include color-svg('../images/forward.svg', white);
}
}
} }

@ -43,7 +43,7 @@ const styles = {
}; };
interface IconButtonProps { interface IconButtonProps {
type: 'save' | 'close'; type: 'save' | 'close' | 'previous' | 'next';
onClick?: () => void; onClick?: () => void;
} }
const IconButton = ({ onClick, type }: IconButtonProps) => ( const IconButton = ({ onClick, type }: IconButtonProps) => (
@ -71,6 +71,8 @@ export class Lightbox extends React.Component<Props, {}> {
<div style={styles.controls}> <div style={styles.controls}>
<IconButton type="close" onClick={this.props.close} /> <IconButton type="close" onClick={this.props.close} />
<IconButton type="save" onClick={this.props.save} /> <IconButton type="save" onClick={this.props.save} />
<IconButton type="previous" />
<IconButton type="next" />
</div> </div>
</div> </div>
); );

Loading…
Cancel
Save