File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- 'use client' ;
2-
31import { Construction } from 'lucide-react' ;
4- import { useEffect , useState } from 'react' ;
5- import ClientPageLoader from './client-page-loader' ;
6- import { getUtilityPages } from './actions' ;
7-
8- export default function FTCUtilities ( ) {
9- const [ componentNames , setComponentNames ] = useState < string [ ] > ( [ ] ) ;
10-
11- useEffect ( ( ) => {
12- getUtilityPages ( ) . then ( setComponentNames ) . catch ( console . error ) ;
13- } , [ ] ) ;
142
3+ export default async function FTCUtilities ( ) {
154 return (
165 < div className = "flex flex-col flex-1 p-6 h-full" >
176 < div className = "flex flex-col items-center justify-center gap-2" >
187 < h1 className = "text-2xl font-bold" > General FTC Utilities</ h1 >
198 < p className = "text-md text-muted-foreground text-center" > Search for or select a utility from below</ p >
209 </ div >
21-
22- < ClientPageLoader componentNames = { componentNames } />
2310 </ div >
2411 )
2512}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments