convert const function to function

This commit is contained in:
Ren Amamiya
2023-05-10 15:48:24 +07:00
parent ae5ff0c48f
commit 1a30c10806
32 changed files with 87 additions and 79 deletions

View File

@@ -1,16 +1,10 @@
import CancelIcon from '@lume/shared/icons/cancel';
import PlusIcon from '@lume/shared/icons/plus';
//import { getNoteAuthors } from '@lume/utils/storage';
import { Dialog, Transition } from '@headlessui/react';
import { Fragment, useState } from 'react';
//import useSWR from 'swr';
//const fetcher = () => getNoteAuthors();
export const CreateViewModal = () => {
//const { data, error }: any = useSWR('authors', fetcher);
export function CreateViewModal() {
const [isOpen, setIsOpen] = useState(false);
const closeModal = () => {
@@ -89,4 +83,4 @@ export const CreateViewModal = () => {
</Transition>
</>
);
};
}