Skip to content

Commit

Permalink
feat: 🚀 follow React custom hook file names
Browse files Browse the repository at this point in the history
  • Loading branch information
limuen committed Jun 20, 2024
1 parent 572ee7c commit 16a9995
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apps/react-low-code/src/views/lowCode/component/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from "react";
import { ColumnType } from "antd/lib/table";
import { useUpdateEffect } from "ahooks";
import { Col, Row } from "antd";
import { useFormHook } from "@/views/lowCode/form/hook/form";
import { useFormHook } from "@/views/lowCode/form/hook/useForm";
import Operations from "@/components/Operations";
import TemplateTagList from "@/components/TemplateTagList";
import { StorageNameMap } from "@/constants/storageNames";
Expand All @@ -18,7 +18,7 @@ import { FormAttribute } from "../form/components/FormGlobalControl";
import TableColumnControl from "../table/components/TableColumnControl";
import TableGlobalControl from "../table/components/TableGlobalControl";
import { TableAttribute } from "../table/components/TableGlobalControl";
import { useTableHook } from "../table/hook/table";
import { useTableHook } from "../table/hook/useTable";
import "./index.less";

interface TemplateList extends ComponentAttribute {
Expand Down
2 changes: 1 addition & 1 deletion apps/react-low-code/src/views/lowCode/form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import FormBody from "./components/FormBody";
import { FormAttribute } from "./components/FormGlobalControl";
import FormGlobalControl from "./components/FormGlobalControl";
import FormFieldControl from "./components/FormFieldControl";
import { useFormHook } from "./hook/form";
import { useFormHook } from "./hook/useForm";
import { getFormTemplate } from "./utils/template";
import { downloadFile, uuid } from "@limuen/utils";
import { StorageNameMap } from "@/constants/storageNames";
Expand Down
4 changes: 2 additions & 2 deletions apps/react-low-code/src/views/lowCode/modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from "react";
import { ColumnType } from "antd/lib/table";
import { useUpdateEffect } from "ahooks";
import { Button, Col, Modal, Row } from "antd";
import { useFormHook } from "../form/hook/form";
import { useFormHook } from "../form/hook/useForm";
import Operations from "@/components/Operations";
import TemplateTagList from "@/components/TemplateTagList";
import { StorageNameMap } from "@/constants/storageNames";
Expand All @@ -20,7 +20,7 @@ import { FormAttribute } from "../form/components/FormGlobalControl";
import TableColumnControl from "../table/components/TableColumnControl";
import TableGlobalControl from "../table/components/TableGlobalControl";
import { TableAttribute } from "../table/components/TableGlobalControl";
import { useTableHook } from "../table/hook/table";
import { useTableHook } from "../table/hook/useTable";
import "./index.less";

interface TemplateList extends ModalAttribute {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from "react";
import { Draggable } from "react-beautiful-dnd";
import { ColumnType } from "antd/lib/table";
import { IColumnType } from "../";
import { IColumnType } from "..";
import { AnyObject } from "@/types";
import { shortUuid, uuid } from "@limuen/utils";
import { TableAttribute } from "../components/TableGlobalControl";
Expand Down
2 changes: 1 addition & 1 deletion apps/react-low-code/src/views/lowCode/table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import TableColumnControl from "./components/TableColumnControl";
import TableGlobalControl from "./components/TableGlobalControl";
import { TableAttribute } from "./components/TableGlobalControl";

import { useTableHook } from "./hook/table";
import { useTableHook } from "./hook/useTable";
import { getTableTemplate } from "./utils/template";

export interface IColumnType extends ColumnType<any> {
Expand Down

0 comments on commit 16a9995

Please sign in to comment.