Skip to content

Commit 243193b

Browse files
yarn(deps): bump react-router from 6.28.0 to 7.0.2 (#4672)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jakob Schwehn <schwehn42@gmail.com>
1 parent 8841492 commit 243193b

File tree

22 files changed

+74
-46
lines changed

22 files changed

+74
-46
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
"react-hotkeys-hook": "^4.6.1",
4040
"react-i18next": "^15.2.0",
4141
"react-redux": "^9.1.2",
42-
"react-router": "^6.22.0",
43-
"react-router-dom": "^6.28.0",
42+
"react-router": "^7.0.2",
4443
"react-snowfall": "^2.2.0",
4544
"react-to-print": "^2.15.1",
4645
"react-toastify": "^10.0.6",

src/components/BoardHeader/HeaderMenu/BoardOptions/BoardOptionLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {MouseEventHandler, VFC} from "react";
2-
import {Link} from "react-router-dom";
2+
import {Link} from "react-router";
33
import classNames from "classnames";
44
import "./BoardOptionLink.scss";
55

src/components/BoardHeader/HeaderMenu/__tests__/__snapshots__/HeaderMenu.test.tsx.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ exports[`<HeaderMenu/> should render correctly for moderator 1`] = `
135135
>
136136
<a
137137
class="board-option-link"
138+
data-discover="true"
138139
href="/settings"
139140
>
140141
<p
@@ -201,6 +202,7 @@ exports[`<HeaderMenu/> should render correctly for participants 1`] = `
201202
>
202203
<a
203204
class="board-option-link"
205+
data-discover="true"
204206
href="/settings"
205207
>
206208
<p

src/components/ErrorPage/ErrorPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import "./ErrorPage.scss";
2-
import {useNavigate} from "react-router-dom";
2+
import {useNavigate} from "react-router";
33
import {useTranslation} from "react-i18next";
44
import {Button} from "components/Button";
55

src/components/Infobar/Infobar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {useTranslation} from "react-i18next";
2-
import {Link} from "react-router-dom";
2+
import {Link} from "react-router";
33
import _ from "underscore";
44
import {Share} from "components/Icon";
55
import {Timer} from "components/Timer";

src/components/SettingsDialog/ExportBoard/__tests__/ExportBoard.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {ExportBoard} from "../ExportBoard";
55
import {I18nextProvider} from "react-i18next";
66
import i18nTest from "i18nTest";
77
import getTestStore from "utils/test/getTestStore";
8-
import {BrowserRouter} from "react-router-dom";
8+
import {BrowserRouter} from "react-router";
99

1010
jest.mock("utils/export", () => ({
1111
...jest.requireActual("utils/export"),

src/components/SettingsDialog/SettingsDialog.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {useEffect, useState} from "react";
22
import {animated, Transition} from "@react-spring/web";
3-
import {Outlet, useLocation, useNavigate} from "react-router";
4-
import {Link} from "react-router-dom";
3+
import {Outlet, useLocation, useNavigate, Link} from "react-router";
54
import classNames from "classnames";
65
import {useTranslation} from "react-i18next";
76
import {Avatar} from "components/Avatar";

src/components/SettingsDialog/__tests__/__snapshots__/SettingsDialog.test.tsx.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ exports[`SettingsDialog should render correctly 1`] = `
9696
>
9797
<a
9898
class="navigation__item navigation__item--active accent-color__backlog-blue"
99+
data-discover="true"
99100
href="/board"
100101
>
101102
<svg
@@ -120,6 +121,7 @@ exports[`SettingsDialog should render correctly 1`] = `
120121
</a>
121122
<a
122123
class="navigation__item accent-color__value-violet"
124+
data-discover="true"
123125
href="/participants"
124126
>
125127
<svg
@@ -144,6 +146,7 @@ exports[`SettingsDialog should render correctly 1`] = `
144146
</a>
145147
<a
146148
class="navigation__item accent-color__poker-purple"
149+
data-discover="true"
147150
href="/appearance"
148151
>
149152
<svg
@@ -168,6 +171,7 @@ exports[`SettingsDialog should render correctly 1`] = `
168171
</a>
169172
<a
170173
class="navigation__item accent-color__planning-pink"
174+
data-discover="true"
171175
href="/share"
172176
>
173177
<svg
@@ -192,6 +196,7 @@ exports[`SettingsDialog should render correctly 1`] = `
192196
</a>
193197
<a
194198
class="navigation__item accent-color__backlog-blue"
199+
data-discover="true"
195200
href="/export"
196201
>
197202
<svg
@@ -216,6 +221,7 @@ exports[`SettingsDialog should render correctly 1`] = `
216221
</a>
217222
<a
218223
class="navigation__item accent-color__value-violet"
224+
data-discover="true"
219225
href="/feedback"
220226
>
221227
<svg
@@ -240,6 +246,7 @@ exports[`SettingsDialog should render correctly 1`] = `
240246
</a>
241247
<a
242248
class="navigation__item accent-color__poker-purple"
249+
data-discover="true"
243250
href="/profile"
244251
>
245252
<svg
@@ -654,6 +661,7 @@ exports[`SettingsDialog should render correctly 1`] = `
654661
>
655662
<a
656663
class="settings-dialog__back-link"
664+
data-discover="true"
657665
href="/"
658666
>
659667
<svg>
@@ -663,6 +671,7 @@ exports[`SettingsDialog should render correctly 1`] = `
663671
</article>
664672
<a
665673
class="settings-dialog__close-button"
674+
data-discover="true"
666675
href="/"
667676
>
668677
<svg

src/components/ShareButton/ShareButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {useTranslation} from "react-i18next";
2-
import {useNavigate} from "react-router-dom";
2+
import {useNavigate} from "react-router";
33
import {Plus} from "components/Icon";
44
import "./ShareButton.scss";
55

src/components/TimerDialog/TimerDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {useState} from "react";
22
import {useTranslation} from "react-i18next";
33
import {Dialog} from "components/Dialog";
4-
import {useNavigate} from "react-router-dom";
4+
import {useNavigate} from "react-router";
55
import {useAppDispatch, useAppSelector} from "store";
66
import {getNumberFromStorage, saveToStorage} from "utils/storage";
77
import {CUSTOM_TIMER_STORAGE_KEY} from "constants/storage";

0 commit comments

Comments
 (0)