Fix cubic review

Signed-off-by: Jonathan <contact@grafikart.fr>
This commit is contained in:
Jonathan
2025-11-19 16:47:01 +01:00
committed by Émile Ré
parent 7e8222d9b5
commit ee0a430d79
2 changed files with 4 additions and 6 deletions

View File

@@ -85,7 +85,6 @@ export function RowButton({
children,
...props
}: {
colspan?: number;
children: ReactNode;
icon?: FC<{ size: number; className?: string }>;
} & ComponentPropsWithRef<"button">) {
@@ -94,7 +93,10 @@ export function RowButton({
<button
{...props}
type="button"
className="py-2 bg-highlight hover:bg-highlight-hover active:bg-highlight-pressed cursor-pointer w-full flex gap-2 items-center justify-center text-sm text-txt-secondary"
className={clsx(
"py-2 bg-highlight hover:bg-highlight-hover active:bg-highlight-pressed cursor-pointer w-full flex gap-2 items-center justify-center text-sm text-txt-secondary",
props.className,
)}
style={{ gridColumnEnd: -1, gridColumnStart: 1 }}
>
<IconComponent size={16} />

View File

@@ -28,10 +28,6 @@ export function TextCell(props: Props) {
onUpdate(props.name, inputValue);
};
// Keep the value in sync with the props.defaultValue if defaultValue changes
useEffect(() => {
setValue(props.defaultValue);
}, [props.defaultValue]);
return (
<EditableCell
name={props.name}