Skip to content

Commit

Permalink
Once Again Kneel Before The Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
calumgunn committed Dec 16, 2021
1 parent 3b9d43e commit fb5928c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/PresetControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ import { getPresets } from "../selectors/entities";
import { RootStateType } from "../lib/store";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import styled from "styled-components";
import { PresetRecord } from "../models/preset";
import { sendPresetToRemote, savePresetToRemote } from "../actions/device";

interface StyledProps {
open: boolean;
}

interface Preset {
id: string;
name: string;
}

const PresetWrapper = styled.div`
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -113,7 +117,8 @@ const PresetControl = memo(function WrappedPresetControl(): JSX.Element {
Select a preset:
</option>
{
presetList && presetList.valueSeq().map(p => <option key={p.id} value={p.name}>{p.name}</option>)
presetList &&
presetList.valueSeq().map((p: Preset) => <option key={p.id} value={p.name}>{p.name}</option>)
}
</select>
<button onClick={loadPreset}>
Expand Down

0 comments on commit fb5928c

Please sign in to comment.