Skip to content

Commit

Permalink
feat(lexical): change className props in TreeView component to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
reekystive committed Aug 20, 2024
1 parent 510720e commit 92b9f38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions packages/lexical-devtools-core/src/TreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ export const TreeView = forwardRef<
HTMLPreElement,
{
editorState: EditorState;
treeTypeButtonClassName: string;
timeTravelButtonClassName: string;
timeTravelPanelButtonClassName: string;
timeTravelPanelClassName: string;
timeTravelPanelSliderClassName: string;
viewClassName: string;
treeTypeButtonClassName?: string;
timeTravelButtonClassName?: string;
timeTravelPanelButtonClassName?: string;
timeTravelPanelClassName?: string;
timeTravelPanelSliderClassName?: string;
viewClassName?: string;
generateContent: (exportDOM: boolean) => Promise<string>;
setEditorState: (state: EditorState, options?: EditorSetOptions) => void;
setEditorReadOnly: (isReadonly: boolean) => void;
Expand Down
12 changes: 6 additions & 6 deletions packages/lexical-react/src/LexicalTreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export function TreeView({
customPrintNode,
}: {
editor: LexicalEditor;
treeTypeButtonClassName: string;
timeTravelButtonClassName: string;
timeTravelPanelButtonClassName: string;
timeTravelPanelClassName: string;
timeTravelPanelSliderClassName: string;
viewClassName: string;
treeTypeButtonClassName?: string;
timeTravelButtonClassName?: string;
timeTravelPanelButtonClassName?: string;
timeTravelPanelClassName?: string;
timeTravelPanelSliderClassName?: string;
viewClassName?: string;
customPrintNode?: CustomPrintNodeFn;
}): JSX.Element {
const treeElementRef = React.createRef<HTMLPreElement>();
Expand Down

0 comments on commit 92b9f38

Please sign in to comment.