[ESLint] Prefer named exports (#427)
This commit is contained in:
@@ -19,7 +19,7 @@ import { useTranslation } from 'react-i18next';
|
||||
import { ListItemButton } from '@mui/material';
|
||||
import { EditTextPreferenceProps } from '@/typings';
|
||||
|
||||
export default function EditTextPreference(props: EditTextPreferenceProps) {
|
||||
export function EditTextPreference(props: EditTextPreferenceProps) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const {
|
||||
|
||||
@@ -84,7 +84,7 @@ function ListDialog(props: IListDialogProps) {
|
||||
);
|
||||
}
|
||||
|
||||
export default function ListPreference(props: ListPreferenceProps) {
|
||||
export function ListPreference(props: ListPreferenceProps) {
|
||||
const {
|
||||
ListPreferenceTitle: title,
|
||||
summary,
|
||||
|
||||
@@ -19,7 +19,7 @@ import Button from '@mui/material/Button';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { ListItemButton } from '@mui/material';
|
||||
import { MultiSelectListPreferenceProps } from '@/typings';
|
||||
import cloneObject from '@/util/cloneObject';
|
||||
import { cloneObject } from '@/util/cloneObject';
|
||||
|
||||
interface IListDialogProps {
|
||||
selectedValues: string[];
|
||||
@@ -98,7 +98,7 @@ function ListDialog(props: IListDialogProps) {
|
||||
);
|
||||
}
|
||||
|
||||
export default function MultiSelectListPreference(props: MultiSelectListPreferenceProps) {
|
||||
export function MultiSelectListPreference(props: MultiSelectListPreferenceProps) {
|
||||
const {
|
||||
MultiSelectListPreferenceTitle: title,
|
||||
summary,
|
||||
|
||||
@@ -80,5 +80,3 @@ export function CheckBoxPreference(props: CheckBoxPreferenceProps) {
|
||||
export function SwitchPreferenceCompat(props: SwitchPreferenceCompatProps) {
|
||||
return <TwoSatePreference {...props} twoStateType="Switch" />;
|
||||
}
|
||||
|
||||
export default { CheckBoxPreference, SwitchPreferenceCompat };
|
||||
|
||||
Reference in New Issue
Block a user