Remove deprecated SOA code
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -6,7 +6,6 @@ type Props = {
|
||||
active?: boolean;
|
||||
id: string;
|
||||
description?: string;
|
||||
excluded?: boolean;
|
||||
to: string;
|
||||
} & HTMLAttributes<HTMLAnchorElement>;
|
||||
|
||||
@@ -27,39 +26,19 @@ const classNames = tv({
|
||||
id: "bg-highlight",
|
||||
},
|
||||
},
|
||||
excluded: {
|
||||
true: {
|
||||
wrapper: "opacity-60",
|
||||
},
|
||||
false: {
|
||||
wrapper: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
compoundVariants: [
|
||||
{
|
||||
active: true,
|
||||
excluded: true,
|
||||
class: {
|
||||
wrapper: "bg-tertiary-pressed opacity-60",
|
||||
id: "bg-active",
|
||||
},
|
||||
},
|
||||
],
|
||||
defaultVariants: {
|
||||
active: false,
|
||||
excluded: false,
|
||||
},
|
||||
});
|
||||
|
||||
export function ControlItem({ active, id, description, excluded, to, ...props }: Props) {
|
||||
export function ControlItem({ active, id, description, to, ...props }: Props) {
|
||||
const {
|
||||
wrapper,
|
||||
id: idCls,
|
||||
description: descriptionCls,
|
||||
} = classNames({
|
||||
active,
|
||||
excluded,
|
||||
});
|
||||
|
||||
const ref = useRef<HTMLAnchorElement>(null);
|
||||
|
||||
Reference in New Issue
Block a user