Skip to content

Commit

Permalink
chore: adjusted exports
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva committed Sep 12, 2024
1 parent 2172a34 commit 7911f62
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type GenericMenuCommonProps = {
disabled?: boolean;
callbackAction?: () => void;
};

type GenericMenuConditionalProps =
| {
sections?: {
Expand All @@ -28,7 +29,7 @@ type GenericMenuConditionalProps =

type GenericMenuProps = GenericMenuCommonProps & GenericMenuConditionalProps & Omit<ComponentProps<typeof MenuV2>, 'children'>;

export const GenericMenu = ({ title, icon = 'menu', disabled, onAction, callbackAction, ...props }: GenericMenuProps) => {
const GenericMenu = ({ title, icon = 'menu', disabled, onAction, callbackAction, ...props }: GenericMenuProps) => {
const t = useTranslation();

const sections = 'sections' in props && props.sections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type GenericMenuItemProps = {
variant?: string;
};

export const GenericMenuItem = ({ icon, content, addon, status, gap, tooltip }: GenericMenuItemProps) => (
const GenericMenuItem = ({ icon, content, addon, status, gap, tooltip }: GenericMenuItemProps) => (
<>
{gap && <MenuItemColumn />}
{icon && <MenuItemIcon name={icon} />}
Expand Down
7 changes: 3 additions & 4 deletions packages/ui-client/src/components/GenericMenu/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { default } from './GenericMenu';
export * from './GenericMenu';
export * from './GenericMenuItem';
export * from './hooks/useHandleMenuAction';
export { default as GenericMenu } from './GenericMenu';
export { default as GenericMenuItem, GenericMenuItemProps } from './GenericMenuItem';
export { useHandleMenuAction } from './hooks/useHandleMenuAction';

0 comments on commit 7911f62

Please sign in to comment.