Skip to content

Commit 2dd6dc9

Browse files
MytsVmaany
authored andcommitted
Remove mock data from the RSE page
1 parent f2b2870 commit 2dd6dc9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/app/(rucio)/rse/page/[name]/page.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import { PageRSE as PageRSEStory } from "@/component-library/Pages/RSE/PageRSE";
44
import { RSEBlockState } from "@/lib/core/entity/rucio";
55
import { RSEAttributeViewModel, RSEProtocolViewModel, RSEViewModel } from "@/lib/infrastructure/data/view-model/rse";
66
import { useEffect, useState } from "react";
7-
import { fixtureRSEViewModel, mockUseComDOM } from "test/fixtures/table-fixtures";
8-
import { fixtureRSEProtocolViewModel, fixtureRSEAttributeViewModel } from "test/fixtures/table-fixtures";
97
import { getAttributes, getProtocols, getRSE } from "../../queries";
108

119
export default function Page({ params }: { params: { name: string } }) {
@@ -14,19 +12,19 @@ export default function Page({ params }: { params: { name: string } }) {
1412
const [attributes, setAttributes] = useState<RSEAttributeViewModel>({status: "pending"} as RSEAttributeViewModel)
1513
useEffect(() => {
1614
getRSE(params.name).then(setRSE)
17-
}, [])
15+
}, [params.name])
1816
useEffect(() => {
1917
getProtocols(params.name).then(setProtocols)
20-
}, [])
18+
}, [params.name])
2119
useEffect(() => {
2220
getAttributes(params.name).then(setAttributes)
23-
}, [])
21+
}, [params.name])
2422
if (rse.status === "pending" || protocols.status === "pending" || attributes.status === "pending") {
2523
return <Loading title="View RSE" subtitle={`For RSE ${params.name}`}/>
2624
}
2725
return (
2826
<PageRSEStory
29-
rse={{ ...fixtureRSEViewModel(), name: params.name }}
27+
rse={rse}
3028
rseblockstate={0 as RSEBlockState}
3129
protocols={protocols}
3230
attributes={attributes}

0 commit comments

Comments
 (0)