mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-11 17:14:15 +00:00
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:
committed by
David Lechner
parent
865d37a138
commit
3e4ea382e5
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user