mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE-316): Rename ExpandedDrawerForm to UniformityPreviewForm
This commit is contained in:
@@ -34,7 +34,7 @@ import {
|
||||
import { type BaseApiResponse } from '@/types/api/api-general';
|
||||
import { ProjectFlockKandangLookup } from '@/types/api/production/project-flock';
|
||||
import { Kandang } from '@/types/api/master-data/kandang';
|
||||
import ExpandedDrawerForm from '@/components/pages/uniformity/form/ExpandedDrawerForm';
|
||||
import UniformityPreviewForm from '@/components/pages/uniformity/form/UniformityPreviewForm';
|
||||
import useSWR from 'swr';
|
||||
import { cn } from '@/lib/helper';
|
||||
|
||||
@@ -360,7 +360,7 @@ const UniformityForm = ({
|
||||
|
||||
useEffect(() => {
|
||||
if (expandedDrawerOpen) {
|
||||
setExpandedDrawerContent(<ExpandedDrawerForm />);
|
||||
setExpandedDrawerContent(<UniformityPreviewForm />);
|
||||
} else {
|
||||
setExpandedDrawerContent(null);
|
||||
}
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@ import Tooltip from '@/components/Tooltip';
|
||||
import DrawerHeader from '@/components/helper/drawer/DrawerHeader';
|
||||
import { useUiStore } from '@/stores/ui/ui.store';
|
||||
|
||||
const ExpandedDrawerForm = () => {
|
||||
const UniformityPreviewForm = () => {
|
||||
const setExpandedDrawerOpen = useUiStore((s) => s.setExpandedDrawerOpen);
|
||||
const setIsNextStep = useUiStore((s) => s.setIsNextStep);
|
||||
|
||||
@@ -41,4 +41,4 @@ const ExpandedDrawerForm = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default ExpandedDrawerForm;
|
||||
export default UniformityPreviewForm;
|
||||
Reference in New Issue
Block a user