Skip to content

Commit

Permalink
fix: build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
jia-deriv committed Apr 2, 2024
1 parent b2f65d7 commit abe4786
Showing 1 changed file with 28 additions and 31 deletions.
59 changes: 28 additions & 31 deletions lib/components/action-sheet/index.tsx
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
import { ReactNode } from 'react'
import ActionSheetRoot from './root'
import ActionSheetHeader from './header'
import ActionSheetContent from './content'
import ActionSheetFooter from './footer'
import ActionSheetHandleBar from './handle-bar'
import ActionSheetTrigger from './trigger'
import ActionSheetPortal from './portal'
import ActionSheetClose from './close'
import { ReactNode } from "react";
import ActionSheetRoot from "./root";
import ActionSheetHeader from "./header";
import ActionSheetContent from "./content";
import ActionSheetFooter from "./footer";
import ActionSheetHandleBar from "./handle-bar";
import ActionSheetTrigger from "./trigger";
import ActionSheetPortal from "./portal";

type ActionSheetType = {
Root: typeof ActionSheetRoot
Header: typeof ActionSheetHeader
Content: typeof ActionSheetContent
Footer: typeof ActionSheetFooter
HandleBar: typeof ActionSheetHandleBar
Trigger: typeof ActionSheetTrigger
Portal: typeof ActionSheetPortal
Close: typeof ActionSheetClose
}
Root: typeof ActionSheetRoot;
Header: typeof ActionSheetHeader;
Content: typeof ActionSheetContent;
Footer: typeof ActionSheetFooter;
HandleBar: typeof ActionSheetHandleBar;
Trigger: typeof ActionSheetTrigger;
Portal: typeof ActionSheetPortal;
};

export const ActionSheet: ActionSheetType = ({
children,
children,
}: {
children: ReactNode
children: ReactNode;
}) => {
return <>{children}</>
}
return <>{children}</>;
};

ActionSheet.Root = ActionSheetRoot
ActionSheet.Header = ActionSheetHeader
ActionSheet.Content = ActionSheetContent
ActionSheet.Footer = ActionSheetFooter
ActionSheet.HandleBar = ActionSheetHandleBar
ActionSheet.Trigger = ActionSheetTrigger
ActionSheet.Portal = ActionSheetPortal
ActionSheet.Close = ActionSheetClose
ActionSheet.Root = ActionSheetRoot;
ActionSheet.Header = ActionSheetHeader;
ActionSheet.Content = ActionSheetContent;
ActionSheet.Footer = ActionSheetFooter;
ActionSheet.HandleBar = ActionSheetHandleBar;
ActionSheet.Trigger = ActionSheetTrigger;
ActionSheet.Portal = ActionSheetPortal;

export default ActionSheet
export default ActionSheet;

0 comments on commit abe4786

Please sign in to comment.