feat: download image button (wip)

This commit is contained in:
David Ralph
2021-04-07 10:57:28 +01:00
parent 670f897a80
commit ee9e5d2a90
6 changed files with 68 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ export default class Dropdown extends React.PureComponent {
};
}
getLabel = () => {
getLabel() {
return this.props.label ? <label>{this.props.label}</label> : null;
}
@@ -39,7 +39,7 @@ export default class Dropdown extends React.PureComponent {
render() {
return (
<>
{this.getLabel}
{this.getLabel()}
<select id={this.props.name} value={this.state.value} onChange={this.onChange} style={{width: `${(8*this.state.title.length) + 50}px`}}>
{this.props.children}
</select>