1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 09:32:50 +00:00

build: eslint

This commit is contained in:
2022-03-29 00:35:45 -05:00
parent 9c57c87e85
commit 0532acfddd
22 changed files with 3332 additions and 1388 deletions

View File

@@ -41,7 +41,7 @@ export class VideoArchive extends React.Component<IProps, IState> {
}
}
onSubmit = async (e: any) => {
onSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
const { url } = this.state;
this.setState({ error: undefined });
@@ -65,7 +65,7 @@ export class VideoArchive extends React.Component<IProps, IState> {
className="input video-archive__text-input"
placeholder="Enter Youtube URL or ID..."
value={url}
onChange={e => this.setState({ url: e.target.value })}
onChange={(e) => this.setState({ url: e.target.value })}
/>
<input type="submit" className="button button--primary" style={{ marginLeft: '10px' }} />
{error && (