apps/web: fix admin files names

This commit is contained in:
vchikalkin 2024-03-28 11:38:30 +03:00
parent a98f30966a
commit 77f5e9f965
6 changed files with 10 additions and 7 deletions

View File

@ -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'] = [
{

View File

@ -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,

View File

@ -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) => {

View File

@ -0,0 +1,3 @@
export * from './AdminRow';
export * from './AdminRows';
export * from './AdminTable';

View File

@ -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';