From 45f46daaa508d1676c04e198e2782a537cbe9277 Mon Sep 17 00:00:00 2001 From: Johan Magnusson Date: Sun, 3 Dec 2023 15:45:32 +0100 Subject: [PATCH] update vite and clean up form1 --- example/package.json | 5 +++-- example/src/App.css | 1 - example/src/forms/Form1.tsx | 14 ++++++++------ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/example/package.json b/example/package.json index eca2b8a..98572cf 100644 --- a/example/package.json +++ b/example/package.json @@ -1,6 +1,7 @@ { "name": "rhf-devtools-example", "private": true, + "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", @@ -16,8 +17,8 @@ "devDependencies": { "@types/react": "^17.0.4", "@types/react-dom": "^17.0.3", - "@vitejs/plugin-react": "^2.0.0", + "@vitejs/plugin-react": "^4.2.0", "typescript": "^4.2.4", - "vite": "^3.0.5" + "vite": "^5.0.4" } } diff --git a/example/src/App.css b/example/src/App.css index 4935d30..9eba6c8 100644 --- a/example/src/App.css +++ b/example/src/App.css @@ -112,7 +112,6 @@ nav { nav > a { appearance: none; text-decoration: inherit; - text-transform: uppercase; color: white; border: 1px solid white; border-radius: 4px; diff --git a/example/src/forms/Form1.tsx b/example/src/forms/Form1.tsx index e1d775b..333c659 100644 --- a/example/src/forms/Form1.tsx +++ b/example/src/forms/Form1.tsx @@ -28,13 +28,15 @@ const Form1: React.FC<{ placement: PLACEMENT }> = ({ placement }) => { return ( <>
data)}> - - - - - - + +