apps/web: fix admin files names
This commit is contained in:
parent
a98f30966a
commit
77f5e9f965
@ -1,4 +1,4 @@
|
||||
import style from '../AdminTable/Admin.module.css';
|
||||
import style from './Admin.module.css';
|
||||
import { getQueryValue } from '@/api/cache/query';
|
||||
import type { ResponseQueries } from '@/api/cache/types';
|
||||
import type { CollapseProps } from 'antd';
|
||||
@ -18,7 +18,7 @@ const Wrapper = styled.div`
|
||||
justify-content: space-between;
|
||||
`;
|
||||
|
||||
export default function AdminRow(props: IProps) {
|
||||
export function AdminRow(props: IProps) {
|
||||
const { data, index, name, onClick } = props;
|
||||
const defaultItems: CollapseProps['items'] = [
|
||||
{
|
||||
@ -1,8 +1,8 @@
|
||||
import AdminRow from '../AdminRow/AdminRow';
|
||||
import { AdminRow } from './AdminRow';
|
||||
import type { CollapseProps } from 'antd';
|
||||
import { Collapse } from 'ui/elements';
|
||||
|
||||
export default function AdminRows({
|
||||
export function AdminRows({
|
||||
index,
|
||||
name,
|
||||
onClick,
|
||||
@ -1,4 +1,4 @@
|
||||
import AdminRows from '../AdminRows/AdminRows';
|
||||
import { AdminRows } from './AdminRows';
|
||||
import { deleleteQueriesByKey, deleteQuery, getQueries } from '@/api/cache/query';
|
||||
import type { ResponseQueries } from '@/api/cache/types';
|
||||
import { useEffect, useState } from 'react';
|
||||
@ -16,7 +16,7 @@ const Wrapper = styled.div`
|
||||
}
|
||||
`;
|
||||
|
||||
export default function AdminTable() {
|
||||
export function AdminTable() {
|
||||
const [data, setData] = useState<ResponseQueries>({});
|
||||
|
||||
const handleClick = async (name: string, key: string) => {
|
||||
3
apps/web/Components/Admin/index.ts
Normal file
3
apps/web/Components/Admin/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export * from './AdminRow';
|
||||
export * from './AdminRows';
|
||||
export * from './AdminTable';
|
||||
@ -1,5 +1,5 @@
|
||||
import { makeGetServerSideProps } from '.';
|
||||
import AdminTable from '@/Components/Admin/AdminTable/AdminTable';
|
||||
import { AdminTable } from '@/Components/Admin';
|
||||
import { Error } from '@/Components/Common/Error';
|
||||
import Background from '@/Components/Layout/Background';
|
||||
import { Grid } from '@/Components/Layout/Page';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user