diff --git a/src/components/PanelComponents/NavOption.tsx b/src/components/PanelComponents/NavOption.tsx index a6ce47a..7718023 100644 --- a/src/components/PanelComponents/NavOption.tsx +++ b/src/components/PanelComponents/NavOption.tsx @@ -22,42 +22,25 @@ export default function NavOption(props: NavOptionProps): JSX.Element { props.border ? border : "" } ${isActive ? divActive : ""}`; - if (props.icon) { - if (props.reduced) { - return ( - -
- - {props.icon} - -
- - ); - } else { - return ( - -
- {props.icon} + return ( + +
+ {props.icon && ( + {props.icon} + )} + + {!props.reduced && ( +

{props.title}

{props.subtitle &&

{props.subtitle}

}
- - ); - } - } else { - return ( - -
-

{props.title}

- {props.subtitle &&

{props.subtitle}

} -
- - ); - } + )} +
+ + ); }