more custom elements

This commit is contained in:
SpikeHD
2022-05-10 00:35:50 -07:00
parent 18a74590f9
commit 6dcc91f216
6 changed files with 120 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
import React from 'react'
import TextInput from './TextInput'
import File from '../../../resources/icons/folder.svg'
import './DirInput.css'
interface IProps {
value?: string;
}
interface IState {
value: string
}
export default class DirInput extends React.Component<IProps, IState> {
constructor(props: IProps) {
super(props)
this.state = {
value: props.value || ''
}
}
handleFileSelect() {
console.log('piss')
}
render() {
return (
<div className='DirInput'>
<TextInput value={this.state.value} placeholder='Set Game Location...' readOnly={true} />
<div className="FileSelectIcon">
<img src={File} />
</div>
</div>
)
}
}