Skip to content

Commit

Permalink
chore: default export 하는 것으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SeieunYoo committed Sep 21, 2024
1 parent 081b086 commit 79dc371
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useDropDownContext } from "./context/DropDownContext";
interface DropDownWrapperProps extends PropsWithChildren {
hasCustomTrigger?: boolean;
}
export const DropDownOptionList = ({
const DropDownOptionList = ({
children,
hasCustomTrigger,
}: DropDownWrapperProps) => {
Expand Down Expand Up @@ -85,6 +85,8 @@ export const DropDownOptionList = ({
);
};

export default DropDownOptionList;

const dropdownContentStyle = cva({
base: {
position: "absolute",
Expand Down
4 changes: 3 additions & 1 deletion packages/wow-ui/src/components/DropDown/DropDownWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface DropDownWrapperProps extends PropsWithChildren {
className?: DropDownProps["className"];
hasCustomTrigger?: boolean;
}
export const DropDownWrapper = ({
const DropDownWrapper = ({
children,
hasCustomTrigger,
...rest
Expand Down Expand Up @@ -43,3 +43,5 @@ export const DropDownWrapper = ({
</Flex>
);
};

export default DropDownWrapper;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createContext } from "react";

import type useDropDownState from "../../../hooks/useDropDownState";
import useSafeContext from "../../../hooks/useSafeContext";
import type useDropDownState from "@/hooks/useDropDownState";
import useSafeContext from "@/hooks/useSafeContext";

export const DropDownContext = createContext<
(ReturnType<typeof useDropDownState> & { dropdownId: string }) | null
Expand Down
4 changes: 2 additions & 2 deletions packages/wow-ui/src/components/DropDown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import type {
import { useId } from "react";

import { DropDownContext } from "@/components/DropDown/context/DropDownContext";
import { DropDownOptionList } from "@/components/DropDown/DropDownOptionList";
import DropDownOptionList from "@/components/DropDown/DropDownOptionList";
import DropDownTrigger from "@/components/DropDown/DropDownTrigger";
import DropDownWrapper from "@/components/DropDown/DropDownWrapper";
import useDropDownState from "@/hooks/useDropDownState";

import { CollectionProvider } from "./context/CollectionContext";
import { DropDownWrapper } from "./DropDownWrapper";
export interface DropDownWithTriggerProps extends PropsWithChildren {
/**
* @description 드롭다운을 열기 위한 외부 트리거 요소입니다.
Expand Down

0 comments on commit 79dc371

Please sign in to comment.