Skip to content

Commit 830bb5b

Browse files
fix: make isDisabled optional
1 parent 9531816 commit 830bb5b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

apps/example-web/src/components/Toolbar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface ToolbarButtonProps {
1717
label: string;
1818
testId: string;
1919
isActive: boolean;
20-
isDisabled: boolean;
20+
isDisabled?: boolean;
2121
variant?: string;
2222
onPress: () => void;
2323
}
@@ -234,7 +234,6 @@ export function Toolbar({
234234
label={item.label}
235235
testId={`toolbar-button-alignment-${item.value}`}
236236
isActive={s?.alignment === item.value}
237-
isDisabled={false}
238237
onPress={() => {
239238
editorRef.current?.setTextAlignment(item.value);
240239
}}

0 commit comments

Comments
 (0)