Commit 2dd6dc9 1 parent f2b2870 commit 2dd6dc9 Copy full SHA for 2dd6dc9
File tree 1 file changed +4
-6
lines changed
src/app/(rucio)/rse/page/[name]
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import { PageRSE as PageRSEStory } from "@/component-library/Pages/RSE/PageRSE";
4
4
import { RSEBlockState } from "@/lib/core/entity/rucio" ;
5
5
import { RSEAttributeViewModel , RSEProtocolViewModel , RSEViewModel } from "@/lib/infrastructure/data/view-model/rse" ;
6
6
import { useEffect , useState } from "react" ;
7
- import { fixtureRSEViewModel , mockUseComDOM } from "test/fixtures/table-fixtures" ;
8
- import { fixtureRSEProtocolViewModel , fixtureRSEAttributeViewModel } from "test/fixtures/table-fixtures" ;
9
7
import { getAttributes , getProtocols , getRSE } from "../../queries" ;
10
8
11
9
export default function Page ( { params } : { params : { name : string } } ) {
@@ -14,19 +12,19 @@ export default function Page({ params }: { params: { name: string } }) {
14
12
const [ attributes , setAttributes ] = useState < RSEAttributeViewModel > ( { status : "pending" } as RSEAttributeViewModel )
15
13
useEffect ( ( ) => {
16
14
getRSE ( params . name ) . then ( setRSE )
17
- } , [ ] )
15
+ } , [ params . name ] )
18
16
useEffect ( ( ) => {
19
17
getProtocols ( params . name ) . then ( setProtocols )
20
- } , [ ] )
18
+ } , [ params . name ] )
21
19
useEffect ( ( ) => {
22
20
getAttributes ( params . name ) . then ( setAttributes )
23
- } , [ ] )
21
+ } , [ params . name ] )
24
22
if ( rse . status === "pending" || protocols . status === "pending" || attributes . status === "pending" ) {
25
23
return < Loading title = "View RSE" subtitle = { `For RSE ${ params . name } ` } />
26
24
}
27
25
return (
28
26
< PageRSEStory
29
- rse = { { ... fixtureRSEViewModel ( ) , name : params . name } }
27
+ rse = { rse }
30
28
rseblockstate = { 0 as RSEBlockState }
31
29
protocols = { protocols }
32
30
attributes = { attributes }
You can’t perform that action at this time.
0 commit comments