Skip to content

Commit

Permalink
Removed unnecessary return types
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Mar 15, 2021
1 parent ff9ff6d commit f478c73
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions src/dashboard/setup/team-preset-creator/team-preset-creator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,6 @@ export const TeamPresetCreator: React.FC = () => {
setLocalTeamName(foundTeamPreset.name);
setLocalLogo(foundTeamPreset.logo || '');
}
} else {
setLocalTeamAlias('');
setLocalTeamName('');
setLocalLogo('');
}
}, [localTeamPresetAlias, teamPresetsRep.teams, localTeamName]);

Expand Down Expand Up @@ -295,7 +291,7 @@ export const TeamPresetCreator: React.FC = () => {
<Select
labelId="teamPresetsLabel"
value={localTeamPresetAlias}
onChange={(e): void => setLocalTeamPresetAlias(e.target.value as string)}>
onChange={(e) => setLocalTeamPresetAlias(e.target.value as string)}>
<MenuItem key={-1} value={''}>
<em>Create new team</em>
</MenuItem>
Expand All @@ -306,15 +302,15 @@ export const TeamPresetCreator: React.FC = () => {
required
label="Name"
value={localTeamName}
onChange={(e): void => setLocalTeamName(e.target.value as string)}
onChange={(e) => setLocalTeamName(e.target.value as string)}
fullWidth
/>
<FormControl variant="filled" fullWidth>
<InputLabel id="teamLabel">Logo</InputLabel>
<Select
labelId="teamLabel"
value={localLogo}
onChange={(e): void => setLocalLogo(e.target.value as string)}>
onChange={(e) => setLocalLogo(e.target.value as string)}>
<MenuItem key={-1} value={''}>
<em>No Team Logo</em>
</MenuItem>
Expand All @@ -325,7 +321,7 @@ export const TeamPresetCreator: React.FC = () => {
required
label="Alias"
value={localTeamAlias}
onChange={(e): void => setLocalTeamAlias(e.target.value as string)}
onChange={(e) => setLocalTeamAlias(e.target.value as string)}
fullWidth
/>
<Button
Expand All @@ -344,7 +340,7 @@ export const TeamPresetCreator: React.FC = () => {
<Select
labelId="playerPresetsLabel"
value={steamId}
onChange={(e): void => setSteamId(e.target.value as string)}>
onChange={(e) => setSteamId(e.target.value as string)}>
<MenuItem key={-1} value={''}>
<em>Create new player</em>
</MenuItem>
Expand All @@ -355,21 +351,21 @@ export const TeamPresetCreator: React.FC = () => {
required
label="SteamID"
value={steamId}
onChange={(e): void => setSteamId(e.target.value as string)}
onChange={(e) => setSteamId(e.target.value as string)}
fullWidth
/>
<TextField
label="Name"
value={localName}
onChange={(e): void => setLocalName(e.target.value as string)}
onChange={(e) => setLocalName(e.target.value as string)}
fullWidth
/>
<FormControl variant="filled" fullWidth>
<InputLabel id="pfpLabel">Profile Picture</InputLabel>
<Select
labelId="pfpLabel"
value={localPfp}
onChange={(e): void => setLocalPfp(e.target.value as string)}>
onChange={(e) => setLocalPfp(e.target.value as string)}>
<MenuItem key={-1} value={''}>
<em>No Profile Picture</em>
</MenuItem>
Expand All @@ -381,7 +377,7 @@ export const TeamPresetCreator: React.FC = () => {
<Select
labelId="countryLabel"
value={localCountry}
onChange={(e): void => setLocalCountry(e.target.value as string)}>
onChange={(e) => setLocalCountry(e.target.value as string)}>
{flagListMap}
</Select>
</FormControl>
Expand Down

0 comments on commit f478c73

Please sign in to comment.