Update eslint to 8.27.0
This commit is contained in:
parent
c8fb43a846
commit
98ef4c627a
499 changed files with 8995 additions and 8494 deletions
|
@ -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)',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue