@@ -85,7 +85,6 @@ export function RowButton({
|
|||||||
children,
|
children,
|
||||||
...props
|
...props
|
||||||
}: {
|
}: {
|
||||||
colspan?: number;
|
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
icon?: FC<{ size: number; className?: string }>;
|
icon?: FC<{ size: number; className?: string }>;
|
||||||
} & ComponentPropsWithRef<"button">) {
|
} & ComponentPropsWithRef<"button">) {
|
||||||
@@ -94,7 +93,10 @@ export function RowButton({
|
|||||||
<button
|
<button
|
||||||
{...props}
|
{...props}
|
||||||
type="button"
|
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 }}
|
style={{ gridColumnEnd: -1, gridColumnStart: 1 }}
|
||||||
>
|
>
|
||||||
<IconComponent size={16} />
|
<IconComponent size={16} />
|
||||||
|
|||||||
@@ -28,10 +28,6 @@ export function TextCell(props: Props) {
|
|||||||
onUpdate(props.name, inputValue);
|
onUpdate(props.name, inputValue);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Keep the value in sync with the props.defaultValue if defaultValue changes
|
|
||||||
useEffect(() => {
|
|
||||||
setValue(props.defaultValue);
|
|
||||||
}, [props.defaultValue]);
|
|
||||||
return (
|
return (
|
||||||
<EditableCell
|
<EditableCell
|
||||||
name={props.name}
|
name={props.name}
|
||||||
|
|||||||
Reference in New Issue
Block a user