chore: run prettier, lint, make it so i can run mue

This commit is contained in:
David Ralph
2024-08-24 00:27:59 +01:00
parent 030c056aed
commit 67649d1985
61 changed files with 153 additions and 352 deletions

View File

@@ -72,10 +72,7 @@ function Tab({ label, currentTab, onClick, navbarTab }) {
const icon = iconMapping[label];
if (
label === variables.getMessage('settings:sections.experimental.title') &&
!isExperimental
) {
if (label === variables.getMessage('settings:sections.experimental.title') && !isExperimental) {
return null;
}

View File

@@ -9,9 +9,7 @@ export const useTab = () => {
export const TabProvider = ({ children }) => {
const [activeTab, setActiveTab] = useState('settings');
const [subTab, setSubTab] = useState(
variables.getMessage('marketplace:product.overview'),
);
const [subTab, setSubTab] = useState(variables.getMessage('marketplace:product.overview'));
const [subSection, setSubSection] = useState('');
const [direction, setDirection] = useState(1);

View File

@@ -17,9 +17,7 @@ function ResetModal({ modalClose }) {
<span className="title">
{variables.getMessage('settings:sections.advanced.reset_modal.title')}
</span>
<Tooltip
title={variables.getMessage('settings:sections.advanced.reset_modal.cancel')}
>
<Tooltip title={variables.getMessage('settings:sections.advanced.reset_modal.cancel')}>
<div className="close" onClick={modalClose}>
<MdClose />
</div>

View File

@@ -61,4 +61,4 @@ function Tooltip({ children, title, style, placement, subtitle }) {
const MemoizedTooltip = memo(Tooltip);
export { MemoizedTooltip as default, MemoizedTooltip as Tooltip };
export { MemoizedTooltip as default, MemoizedTooltip as Tooltip };

View File

@@ -49,8 +49,22 @@ const Dropdown = (props) => {
return (
<div className="w-[100%] max-w-md">
<Field id={props.name} value={value} label={label} onChange={onChange} ref={dropdown} key={id}>
<Label id={props.name} value={value} label={label} onChange={onChange} ref={dropdown} key={id}>
<Field
id={props.name}
value={value}
label={label}
onChange={onChange}
ref={dropdown}
key={id}
>
<Label
id={props.name}
value={value}
label={label}
onChange={onChange}
ref={dropdown}
key={id}
>
{label}
</Label>
<div className="relative">
@@ -78,4 +92,4 @@ const Dropdown = (props) => {
);
};
export { Dropdown as default, Dropdown };
export { Dropdown as default, Dropdown };