File tree Expand file tree Collapse file tree 4 files changed +18
-36
lines changed
apps/cyberstorm-remix/app/p/tabs/Versions Expand file tree Collapse file tree 4 files changed +18
-36
lines changed Original file line number Diff line number Diff line change 9
9
NewTable ,
10
10
NewTableLabels ,
11
11
Heading ,
12
- NewAlert ,
13
12
SkeletonBox ,
14
13
NewLink ,
15
14
} from "@thunderstore/cyberstorm" ;
@@ -30,6 +29,7 @@ import {
30
29
} from "cyberstorm/security/publicEnvVariables" ;
31
30
import { Suspense } from "react" ;
32
31
import { isSemver } from "cyberstorm/utils/typeChecks" ;
32
+ import { ModManagerBanner } from "./common" ;
33
33
34
34
export async function loader ( { params } : LoaderFunctionArgs ) {
35
35
if ( params . communityId && params . namespaceId && params . packageId ) {
@@ -181,17 +181,6 @@ const columns: NewTableLabels = [
181
181
{ value : "Actions" , disableSort : true } ,
182
182
] ;
183
183
184
- const ModManagerBanner = ( ) => (
185
- < NewAlert csVariant = "info" >
186
- Please note that the install buttons only work if you have compatible client
187
- software installed, such as the{ " " }
188
- < a href = "https://www.overwolf.com/app/Thunderstore-Thunderstore_Mod_Manager" >
189
- Thunderstore Mod Manager.
190
- </ a > { " " }
191
- Otherwise use the zip download links instead.
192
- </ NewAlert >
193
- ) ;
194
-
195
184
const DownloadLink = ( props : { download_url : string } ) => (
196
185
< NewButton
197
186
csVariant = "secondary"
Original file line number Diff line number Diff line change 9
9
NewTable ,
10
10
NewTableLabels ,
11
11
Heading ,
12
- NewAlert ,
13
12
SkeletonBox ,
14
13
NewLink ,
15
14
} from "@thunderstore/cyberstorm" ;
@@ -30,6 +29,7 @@ import {
30
29
} from "cyberstorm/security/publicEnvVariables" ;
31
30
import { Suspense } from "react" ;
32
31
import { isSemver } from "cyberstorm/utils/typeChecks" ;
32
+ import { ModManagerBanner } from "./common" ;
33
33
34
34
export async function loader ( { params } : LoaderFunctionArgs ) {
35
35
if ( params . namespaceId && params . packageId ) {
@@ -181,17 +181,6 @@ const columns: NewTableLabels = [
181
181
{ value : "Actions" , disableSort : true } ,
182
182
] ;
183
183
184
- const ModManagerBanner = ( ) => (
185
- < NewAlert csVariant = "info" >
186
- Please note that the install buttons only work if you have compatible client
187
- software installed, such as the{ " " }
188
- < a href = "https://www.overwolf.com/app/Thunderstore-Thunderstore_Mod_Manager" >
189
- Thunderstore Mod Manager.
190
- </ a > { " " }
191
- Otherwise use the zip download links instead.
192
- </ NewAlert >
193
- ) ;
194
-
195
184
const DownloadLink = ( props : { download_url : string } ) => (
196
185
< NewButton
197
186
csVariant = "secondary"
Original file line number Diff line number Diff line change 9
9
NewTable ,
10
10
NewTableLabels ,
11
11
Heading ,
12
- NewAlert ,
13
12
SkeletonBox ,
14
13
NewLink ,
15
14
} from "@thunderstore/cyberstorm" ;
@@ -30,6 +29,7 @@ import {
30
29
} from "cyberstorm/security/publicEnvVariables" ;
31
30
import { Suspense } from "react" ;
32
31
import { isSemver } from "cyberstorm/utils/typeChecks" ;
32
+ import { ModManagerBanner } from "./common" ;
33
33
34
34
export async function loader ( { params } : LoaderFunctionArgs ) {
35
35
if ( params . communityId && params . namespaceId && params . packageId ) {
@@ -181,17 +181,6 @@ const columns: NewTableLabels = [
181
181
{ value : "Actions" , disableSort : true } ,
182
182
] ;
183
183
184
- const ModManagerBanner = ( ) => (
185
- < NewAlert csVariant = "info" >
186
- Please note that the install buttons only work if you have compatible client
187
- software installed, such as the{ " " }
188
- < a href = "https://www.overwolf.com/app/Thunderstore-Thunderstore_Mod_Manager" >
189
- Thunderstore Mod Manager.
190
- </ a > { " " }
191
- Otherwise use the zip download links instead.
192
- </ NewAlert >
193
- ) ;
194
-
195
184
const DownloadLink = ( props : { download_url : string } ) => (
196
185
< NewButton
197
186
csVariant = "secondary"
Original file line number Diff line number Diff line change
1
+ import { NewAlert } from "@thunderstore/cyberstorm" ;
2
+ import { memo } from "react" ;
3
+
4
+ export const ModManagerBanner = memo ( function ModManagerBanner ( ) {
5
+ return (
6
+ < NewAlert csVariant = "info" >
7
+ Please note that the install buttons only work if you have compatible
8
+ client software installed, such as the{ " " }
9
+ < a href = "https://www.overwolf.com/app/Thunderstore-Thunderstore_Mod_Manager" >
10
+ Thunderstore Mod Manager.
11
+ </ a > { " " }
12
+ Otherwise use the zip download links instead.
13
+ </ NewAlert >
14
+ ) ;
15
+ } ) ;
You can’t perform that action at this time.
0 commit comments