This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useState, useEffect } from 'react'; | |
| import Button from '@material-ui/core/Button'; | |
| import Box from '@material-ui/core/Box'; | |
| const FileInput = () => { | |
| const [selectedImage, setSelectedImage] = useState(null); | |
| const [imageUrl, setImageUrl] = useState(null); | |
| useEffect(() => { | |
| if (selectedImage) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* used to override pale yellow color that chrome uses when user chooses an item from | |
| its autocomplete list */ | |
| input:-webkit-autofill, | |
| input:-webkit-autofill:hover, | |
| input:-webkit-autofill:focus, | |
| input:-webkit-autofill:active { | |
| transition: background-color 5000s ease-in-out 0s; | |
| } | |
| input:-webkit-autofill { |