[build] upgrade eslint to 9.37.0 (#88)
Co-authored-by: tobi <tobi.smethurst@protonmail.com> Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88 Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org> Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
This commit is contained in:
@@ -3,22 +3,22 @@
|
||||
@typescript-eslint/no-unsafe-assignment,
|
||||
@typescript-eslint/no-unsafe-member-access
|
||||
-- the settings store is not yet typed */
|
||||
import { useCallback } from 'react';
|
||||
import { useCallback } from "react";
|
||||
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from "react-intl";
|
||||
|
||||
import { useAppSelector, useAppDispatch } from 'mastodon/store';
|
||||
import { useAppSelector, useAppDispatch } from "mastodon/store";
|
||||
|
||||
import { changeSetting } from '../../../actions/settings';
|
||||
import SettingToggle from '../../notifications/components/setting_toggle';
|
||||
import { changeSetting } from "../../../actions/settings";
|
||||
import SettingToggle from "../../notifications/components/setting_toggle";
|
||||
|
||||
export const ColumnSettings: React.FC = () => {
|
||||
const settings = useAppSelector((state) => state.settings.get('home'));
|
||||
const settings = useAppSelector((state) => state.settings.get("home"));
|
||||
|
||||
const dispatch = useAppDispatch();
|
||||
const onChange = useCallback(
|
||||
(key: string, checked: boolean) => {
|
||||
dispatch(changeSetting(['home', ...key], checked));
|
||||
dispatch(changeSetting(["home", key.split("")], checked));
|
||||
},
|
||||
[dispatch],
|
||||
);
|
||||
@@ -36,7 +36,7 @@ export const ColumnSettings: React.FC = () => {
|
||||
<SettingToggle
|
||||
prefix='home_timeline'
|
||||
settings={settings}
|
||||
settingPath={['shows', 'reblog']}
|
||||
settingPath={["shows", "reblog"]}
|
||||
onChange={onChange}
|
||||
label={
|
||||
<FormattedMessage
|
||||
@@ -51,7 +51,7 @@ export const ColumnSettings: React.FC = () => {
|
||||
<SettingToggle
|
||||
prefix='home_timeline'
|
||||
settings={settings}
|
||||
settingPath={['shows', 'reply']}
|
||||
settingPath={["shows", "reply"]}
|
||||
onChange={onChange}
|
||||
label={
|
||||
<FormattedMessage
|
||||
|
||||
Reference in New Issue
Block a user