fix: resolve ReferenceError during prerendering by moving use client to file top
This commit is contained in:
1 parent
e44174517f
commit
1c89b0a0eb
2 files changed
+3
-1
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
// @ts-nocheck
|
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import { useApiGet } from '@/lib/hooks/useApi';
|
import { useApiGet } from '@/lib/hooks/useApi';
|
||||||
import { DataTable } from '@/components/data-table';
|
import { DataTable } from '@/components/data-table';
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
|
import { useState } from "react"
|
||||||
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./ui/table"
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./ui/table"
|
||||||
import { Button } from "./ui/button"
|
import { Button } from "./ui/button"
|
||||||
import { Input } from "./ui/input"
|
import { Input } from "./ui/input"
|
||||||
|
|||||||
Reference in new issue
Block a user