Skip to content

Commit 47dc3ad

Browse files
build: migrate from Remix v2 to React Router v7 (#237)
1 parent 1de138d commit 47dc3ad

32 files changed

+536
-3952
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ node_modules
22

33
/.cache
44
/build
5+
/.react-router
56
.env
67

78
.envrc

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ the [Electron](https://github.com/electron/electron) project.
55

66
## Getting started
77

8-
The website is built using [Remix](https://remix.run/).
8+
The website is built using [React Router](https://reactrouter.com/).
99

1010
### Installation
1111

1212
To run the app locally, install dependencies and run the `dev` script:
1313

1414
```
15-
npm install
16-
npm run dev
15+
yarn install
16+
yarn dev
1717
```
1818

1919
### GitHub Authentication

app/components/ActiveBuildCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Link } from '@remix-run/react';
1+
import { Link } from 'react-router';
22
import { SudowoodoRelease } from '~/data/release-data';
33

44
type ActiveBuildCardProps = {

app/components/ChannelFilterButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useNavigation } from '@remix-run/react';
1+
import { useNavigation } from 'react-router';
22
import { useCallback } from 'react';
33

44
const prettyChannels = {

app/components/PageHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Link } from '@remix-run/react';
1+
import { Link } from 'react-router';
22
import { ArrowLeft } from 'lucide-react';
33
import React from 'react';
44

app/components/Pagination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useNavigation } from '@remix-run/react';
1+
import { useNavigation } from 'react-router';
22
import { useCallback, useMemo } from 'react';
33

44
type PaginationProps = {

app/components/ReleaseTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Link } from '@remix-run/react';
1+
import { Link } from 'react-router';
22
import { ElectronRelease } from '~/data/release-data';
33
import { humanFriendlyDaysSince, prettyReleaseDate } from '~/helpers/time';
44

app/components/VersionInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IconType } from '@icons-pack/react-simple-icons';
2-
import { Link } from '@remix-run/react';
2+
import { Link } from 'react-router';
33
import { ArrowDown, ArrowRight } from 'lucide-react';
44

55
type VersionInfoProps = {

app/components/VersionTimeline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Link } from '@remix-run/react';
1+
import { Link } from 'react-router';
22

33
type VersionTimelineProps = {
44
fromVersion: string;

app/entry.client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { RemixBrowser } from '@remix-run/react';
21
import { startTransition, StrictMode } from 'react';
32
import { hydrateRoot } from 'react-dom/client';
3+
import { HydratedRouter } from 'react-router/dom';
44

55
startTransition(() => {
66
hydrateRoot(
77
document,
88
<StrictMode>
9-
<RemixBrowser />
9+
<HydratedRouter />
1010
</StrictMode>,
1111
);
1212
});

0 commit comments

Comments
 (0)