From 251d1c86f705a08813ac0c5e595e10b9160d6769 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Fri, 8 Nov 2024 13:39:43 +0000 Subject: [PATCH] lint --- src/button/ReactionToggleButton.tsx | 1 - src/reactions/RaisedHandIndicator.tsx | 3 +-- src/reactions/ReactionIndicator.tsx | 2 +- src/settings/PreferencesSettingsTab.tsx | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/button/ReactionToggleButton.tsx b/src/button/ReactionToggleButton.tsx index 689bb990..b97511d2 100644 --- a/src/button/ReactionToggleButton.tsx +++ b/src/button/ReactionToggleButton.tsx @@ -8,7 +8,6 @@ Please see LICENSE in the repository root for full details. import { Button as CpdButton, Tooltip, - Separator, Search, Form, Alert, diff --git a/src/reactions/RaisedHandIndicator.tsx b/src/reactions/RaisedHandIndicator.tsx index 6389be42..cfc83ab8 100644 --- a/src/reactions/RaisedHandIndicator.tsx +++ b/src/reactions/RaisedHandIndicator.tsx @@ -12,11 +12,10 @@ import { useEffect, useState, } from "react"; -import "@formatjs/intl-durationformat/polyfill"; import { DurationFormat } from "@formatjs/intl-durationformat"; +import { useTranslation } from "react-i18next"; import { ReactionIndicator } from "./ReactionIndicator"; -import { useTranslation } from "react-i18next"; const durationFormatter = new DurationFormat(undefined, { minutesDisplay: "always", diff --git a/src/reactions/ReactionIndicator.tsx b/src/reactions/ReactionIndicator.tsx index 1e758885..a664df18 100644 --- a/src/reactions/ReactionIndicator.tsx +++ b/src/reactions/ReactionIndicator.tsx @@ -7,9 +7,9 @@ Please see LICENSE in the repository root for full details. import { PropsWithChildren, ReactNode } from "react"; import classNames from "classnames"; +import { useTranslation } from "react-i18next"; import styles from "./ReactionIndicator.module.css"; -import { useTranslation } from "react-i18next"; export function ReactionIndicator({ emoji, diff --git a/src/settings/PreferencesSettingsTab.tsx b/src/settings/PreferencesSettingsTab.tsx index 5fcbb83c..bc98d181 100644 --- a/src/settings/PreferencesSettingsTab.tsx +++ b/src/settings/PreferencesSettingsTab.tsx @@ -32,7 +32,7 @@ export const PreferencesSettingsTab: FC = () => { const onChangeSetting = ( e: ChangeEvent, fn: (value: boolean) => void, - ) => { + ): void => { fn(e.target.checked); };