Update eslint to 8.27.0

This commit is contained in:
Fedor Indutny 2022-11-17 16:45:19 -08:00 committed by GitHub
parent c8fb43a846
commit 98ef4c627a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
499 changed files with 8995 additions and 8494 deletions

View file

@ -18,7 +18,7 @@ type Props = {
initialValue: number;
};
const TimerSelectWrap: React.FC<Props> = ({ initialValue }) => {
function TimerSelectWrap({ initialValue }: Props): JSX.Element {
const [value, setValue] = useState(initialValue);
return (
@ -28,19 +28,19 @@ const TimerSelectWrap: React.FC<Props> = ({ initialValue }) => {
onChange={newValue => setValue(newValue)}
/>
);
};
}
export const InitialValue1Day = (): JSX.Element => (
<TimerSelectWrap initialValue={24 * 3600} />
);
export function InitialValue1Day(): JSX.Element {
return <TimerSelectWrap initialValue={24 * 3600} />;
}
InitialValue1Day.story = {
name: 'Initial value: 1 day',
};
export const InitialValue3DaysCustomTime = (): JSX.Element => (
<TimerSelectWrap initialValue={3 * 24 * 3600} />
);
export function InitialValue3DaysCustomTime(): JSX.Element {
return <TimerSelectWrap initialValue={3 * 24 * 3600} />;
}
InitialValue3DaysCustomTime.story = {
name: 'Initial value 3 days (Custom time)',