Skip to content

Commit 1bed2b8

Browse files
authored
update imports to v6 of react-router-dom
1 parent 185bb91 commit 1bed2b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/snippets/generated.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -954,13 +954,13 @@
954954
"importRouterSetup": {
955955
"key": "importRouterSetup",
956956
"prefix": "imbrc",
957-
"body": ["import { Route, Switch, NavLink, Link } from 'react-router-dom'"],
957+
"body": ["import { Route, Routes, NavLink, Link } from 'react-router-dom'"],
958958
"scope": "typescript,typescriptreact,javascript,javascriptreact"
959959
},
960960
"importRouterSwitch": {
961961
"key": "importRouterSwitch",
962962
"prefix": "imbrs",
963-
"body": ["import { Switch } from 'react-router-dom'"],
963+
"body": ["import { Routes } from 'react-router-dom'"],
964964
"scope": "typescript,typescriptreact,javascript,javascriptreact"
965965
},
966966
"import": {

0 commit comments

Comments
 (0)