move images out of public/static folder

This way, we get compile error if there problem with images. Also allows
images to be optimized.
This commit is contained in:
David Lechner
2020-05-26 21:20:08 -05:00
committed by David Lechner
parent 865d37a138
commit 3e4ea382e5
19 changed files with 18 additions and 16 deletions
+1 -4
View File
@@ -101,10 +101,7 @@ class OpenFileButton extends React.Component<OpenFileButtonProps> {
: {})}
>
<input {...getInputProps()} />
<Image
src={`/static/images/${this.props.icon}`}
alt={this.props.id}
/>
<Image src={this.props.icon} alt={this.props.id} />
</Button>
</OverlayTrigger>
)}