This commit is contained in:
cracklesparkle
2025-01-31 15:56:10 +09:00
parent c08f839b70
commit 85bafea7c8

View File

@ -1,8 +1,8 @@
import { Button, Card, Flex, Grid, Group, ScrollAreaAutosize, Stack, Tabs, Text } from '@mantine/core'
import { Stack, Tabs } from '@mantine/core'
import useSWR from 'swr'
import { BASE_URL } from '../constants'
import { fetcher } from '../http/axiosInstance'
import { useEffect, useState } from 'react'
import { useState } from 'react'
import CustomTable from '../components/CustomTable'
const DBManager = () => {
@ -49,8 +49,8 @@ const DBManager = () => {
const TableData = ({
tablename
}: { tablename: string }) => {
const [offset, setOffset] = useState(0)
const [limit, setLimit] = useState(20)
const [offset] = useState(0)
const [limit] = useState(20)
const { data: columnsData } = useSWR(`/db/columns/${tablename}`, (key) => fetcher(key, BASE_URL.ems), {
revalidateOnFocus: false