update upload

This commit is contained in:
Alex Santos 2022-06-28 08:58:06 -03:00
parent 2b194dc5d1
commit c91f1cc218
2 changed files with 38 additions and 1 deletions

View File

@ -25,7 +25,6 @@ const Alert = React.forwardRef<HTMLDivElement, AlertProps>(function Alert(
const formData = new FormData()
export default function industryInfo({userName}: any) {
const [url, setUrl] = React.useState('');
@ -105,8 +104,29 @@ export default function industryInfo({userName}: any) {
</div>
<div className='inputTeste'>
<form action="">
<div className='tesess'>
<label htmlFor="arquivo"> <p className='TitleBllutton'> </p> </label>
<input type="file" name='arquivo' id='arquivo' onChange={onChange} />
</div>
</form>
</div>
<form>
<div>
<label htmlFor="arquivo"></label>
<input type="file" name='arquivo' id='arquivo'/>
</div>
</form>
<BasicButton onClick={handleCreateClient} title='Atualizar'/>

View File

@ -39,4 +39,21 @@ export const IndustryInfoView = styled.main`
}
input[type="file"] {
display: none;
}
label {
padding: 20px 10px;
width: 200px;
background-color: #333;
color: #FFF;
text-transform: uppercase;
text-align: center;
display: block;
margin-top: 10px;
cursor: pointer;
}
`