mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
Lint all files
This commit is contained in:
parent
22af76b4d6
commit
30e52ebb54
334 changed files with 76519 additions and 75932 deletions
|
|
@ -1,28 +1,28 @@
|
|||
import { SettingsOptions } from '/@/renderer/features/settings/components/settings-option';
|
||||
|
||||
export type SettingOption = {
|
||||
control: JSX.Element;
|
||||
description: string | JSX.Element;
|
||||
isHidden?: boolean;
|
||||
note?: string;
|
||||
title: string;
|
||||
control: JSX.Element;
|
||||
description: string | JSX.Element;
|
||||
isHidden?: boolean;
|
||||
note?: string;
|
||||
title: string;
|
||||
};
|
||||
|
||||
interface SettingsSectionProps {
|
||||
options: SettingOption[];
|
||||
options: SettingOption[];
|
||||
}
|
||||
|
||||
export const SettingsSection = ({ options }: SettingsSectionProps) => {
|
||||
return (
|
||||
<>
|
||||
{options
|
||||
.filter((o) => !o.isHidden)
|
||||
.map((option) => (
|
||||
<SettingsOptions
|
||||
key={`general-${option.title}`}
|
||||
{...option}
|
||||
/>
|
||||
))}
|
||||
</>
|
||||
);
|
||||
return (
|
||||
<>
|
||||
{options
|
||||
.filter((o) => !o.isHidden)
|
||||
.map((option) => (
|
||||
<SettingsOptions
|
||||
key={`general-${option.title}`}
|
||||
{...option}
|
||||
/>
|
||||
))}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue