mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-10 09:12:39 +00:00
towards a more traditional approach
This commit is contained in:
@@ -9,7 +9,7 @@ const STYLEKEY = 'homebrewery-new-style';
|
|||||||
const METAKEY = 'homebrewery-new-meta';
|
const METAKEY = 'homebrewery-new-meta';
|
||||||
|
|
||||||
const NewBrew = () => {
|
const NewBrew = () => {
|
||||||
const inputRef = useRef(null);
|
|
||||||
|
|
||||||
const [brew, setBrew] = useState({
|
const [brew, setBrew] = useState({
|
||||||
text: '',
|
text: '',
|
||||||
@@ -84,8 +84,8 @@ const NewBrew = () => {
|
|||||||
<Nav.item
|
<Nav.item
|
||||||
color='purple'
|
color='purple'
|
||||||
icon='fas fa-plus-square'
|
icon='fas fa-plus-square'
|
||||||
onClick={() => { inputRef.current.click(); }}>
|
onClick={() => { document.getElementById('uploadTxt').click(); }}>
|
||||||
<input className='newFromLocal' type="file" ref={inputRef} onChange={handleFileChange} style={{ display: 'none' }} />
|
<input id="uploadTxt" className='newFromLocal' type="file" onChange={handleFileChange} style={{ display: 'none' }} />
|
||||||
New From Local File
|
New From Local File
|
||||||
</Nav.item>
|
</Nav.item>
|
||||||
</Nav.dropdown>
|
</Nav.dropdown>
|
||||||
|
|||||||
Reference in New Issue
Block a user