From ec7ee5f685292a1c6beeda8bf40acdc429615a89 Mon Sep 17 00:00:00 2001 From: iancleary Date: Sat, 1 Feb 2025 16:47:27 -0700 Subject: [PATCH] Update peerDependencies --- package.json | 6 +++--- ui/src/Button.tsx | 9 +++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index afdba08..1f8db11 100644 --- a/package.json +++ b/package.json @@ -36,9 +36,9 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0", - "@remix-run/react": "^2.15.2", + "react": "^19.0.0", + "react-dom": "^19.0.0", + "react-router": "^7.1.5", "@stylexjs/stylex": "^0.9.3" }, "devDependencies": { diff --git a/ui/src/Button.tsx b/ui/src/Button.tsx index 9b7f089..f2c6a7a 100644 --- a/ui/src/Button.tsx +++ b/ui/src/Button.tsx @@ -7,8 +7,7 @@ */ import React from "react"; -import { Link } from "@remix-run/react"; - +import { Link } from "react-router"; import * as stylex from "@stylexjs/stylex"; import { size, colors } from "../../styles/tokens.stylex"; @@ -58,8 +57,6 @@ const styles = stylex.create({ }, }); - - interface Props { to?: string; variant?: string; @@ -86,7 +83,7 @@ const Button: React.FC = ({ variant === "danger" && styles.danger, size === "sm" && styles.sm, size === "icon" && styles.icon, - size === "base" && styles.base, + size === "base" && styles.base )} > {children} @@ -103,7 +100,7 @@ const Button: React.FC = ({ variant === "danger" && styles.danger, size === "sm" && styles.sm, size === "icon" && styles.icon, - size === "base" && styles.base, + size === "base" && styles.base )} > {children}