diff --git a/package.json b/package.json
index 83229c0d..436e0de2 100644
--- a/package.json
+++ b/package.json
@@ -26,8 +26,8 @@
"@tldraw/vec": "1.7.1",
"@types/jest": "27.4.0",
"@types/pica": "5.1.3",
- "@types/react": "17.0.39",
- "@types/react-dom": "17.0.11",
+ "@types/react": "18.0.15",
+ "@types/react-dom": "18.0.6",
"@types/socket.io-client": "1.4.36",
"browser-fs-access": "0.29.1",
"clsx": "1.1.1",
@@ -47,8 +47,8 @@
"png-chunks-extract": "1.0.0",
"points-on-curve": "0.2.0",
"pwacompat": "2.0.17",
- "react": "17.0.2",
- "react-dom": "17.0.2",
+ "react": "18.2.0",
+ "react-dom": "18.2.0",
"react-scripts": "4.0.3",
"roughjs": "4.5.2",
"sass": "1.51.0",
diff --git a/src/components/Card.tsx b/src/components/Card.tsx
index dd5f0594..2ba5a97a 100644
--- a/src/components/Card.tsx
+++ b/src/components/Card.tsx
@@ -4,6 +4,7 @@ import "./Card.scss";
export const Card: React.FC<{
color: keyof OpenColor | "primary";
+ children?: React.ReactNode;
}> = ({ children, color }) => {
return (
void;
className?: string;
+ children?: React.ReactNode;
}> = ({ children, checked, onChange, className }) => {
return (
void;
title: string;
shade?: number;
+ children?: React.ReactNode;
}> = ({ children, title, onClick, color, shade = 6 }) => {
return (