mirror of
https://github.com/mue/mue.git
synced 2026-07-13 12:07:45 +02:00
chore: run prettier, lint, make it so i can run mue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 };
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user