* Add Types

* Add Types
This commit is contained in:
Zach H 2024-06-17 00:32:36 -04:00 committed by GitHub
parent 0994d10410
commit c4bf9eb61c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
61 changed files with 207 additions and 737 deletions

View file

@ -7,6 +7,7 @@ import { ModeratorService } from 'api';
import { AuthGuard, ModGuard } from 'components';
import { SearchForm } from 'forms';
import { ServerDispatch, ServerSelectors, ServerStateLogs } from 'store';
import { LogFilters } from 'types';
import LogResults from './LogResults';
import './Logs.css';
@ -24,7 +25,7 @@ class Logs extends Component<LogsTypes> {
ServerDispatch.clearLogs();
}
onSubmit(fields) {
onSubmit(fields: LogFilters) {
const trimmedFields: any = this.trimFields(fields);
const { userName, ipAddress, gameName, gameId, message, logLocation } = trimmedFields;