mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
chore: upgrade to React 18 (#5450)
* chore: upgrade to React 18 * better type * use React.FC to fix type Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
958ebeae61
commit
15d79f8fee
11 changed files with 76 additions and 51 deletions
|
@ -58,6 +58,7 @@ const ExportButton: React.FC<{
|
|||
onClick: () => void;
|
||||
title: string;
|
||||
shade?: number;
|
||||
children?: React.ReactNode;
|
||||
}> = ({ children, title, onClick, color, shade = 6 }) => {
|
||||
return (
|
||||
<button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue