@stanlemon/app-template 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/App.tsx +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stanlemon/app-template",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "A template for creating apps using the webdev package.",
|
|
5
5
|
"author": "Stan Lemon <stanlemon@users.noreply.github.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react": "^19.1.0",
|
|
30
30
|
"react-cookie": "^8.0.1",
|
|
31
31
|
"react-dom": "^19.1.0",
|
|
32
|
-
"wouter": "^3.
|
|
32
|
+
"wouter": "^3.7.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@testing-library/react": "^16.3.0",
|
package/src/App.tsx
CHANGED
|
@@ -40,7 +40,12 @@ export default function App() {
|
|
|
40
40
|
<SuccessMessage message={message} />
|
|
41
41
|
{!user && (
|
|
42
42
|
<Switch>
|
|
43
|
-
<Route path="/">
|
|
43
|
+
<Route path="/verify/:token">
|
|
44
|
+
{({ token: verificationToken }: { token: string }) => (
|
|
45
|
+
<Verify token={verificationToken} />
|
|
46
|
+
)}
|
|
47
|
+
</Route>
|
|
48
|
+
<Route>
|
|
44
49
|
<Row>
|
|
45
50
|
<Column>
|
|
46
51
|
<h2>Login</h2>
|
|
@@ -53,11 +58,6 @@ export default function App() {
|
|
|
53
58
|
</Column>
|
|
54
59
|
</Row>
|
|
55
60
|
</Route>
|
|
56
|
-
<Route path="/verify/:token">
|
|
57
|
-
{({ token: verificationToken }: { token: string }) => (
|
|
58
|
-
<Verify token={verificationToken} />
|
|
59
|
-
)}
|
|
60
|
-
</Route>
|
|
61
61
|
</Switch>
|
|
62
62
|
)}
|
|
63
63
|
{user && (
|