Skip to content

Commit

Permalink
LF-4381 Rename ThreeDotsMenu to MeatballsMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakaOno committed Oct 19, 2024
1 parent e481190 commit 57aef46
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { useTheme } from '@mui/styles';
import { useMediaQuery } from '@mui/material';
import Icon, { IconName } from '../../Icons';
import TextButton from '../../Form/Button/TextButton';
import ThreeDotsMenu from '../../Menu/ThreeDotsMenu';
import MeatballsMenu from '../../Menu/MeatballsMenu';
import { getAge } from '../../../util/age';
import {
Animal,
Expand Down Expand Up @@ -106,7 +106,7 @@ const ContainerWithButtons = ({
<div className={clsx(styles.content, contentClassName)}>{children}</div>
<div className={styles.statusAndButton}>
{!isCompactView && isEditing ? <div>{t('common:EDITING')}</div> : null}
<ThreeDotsMenu
<MeatballsMenu
options={options}
classes={{ button: isEditing ? styles.editingStatusButton : '' }}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import FloatingMenu from '../FloatingButtonMenu/FloatingMenu';
import DropdownButton from '../../Form/DropDownButton';
import styles from './styles.module.scss';

export type ThreeDotsMenuProps = {
export type MeatballsMenuProps = {
classes?: { button?: string };
options: { label: ReactNode; onClick: () => void }[];
};

const ThreeDotsMenu = ({ options, classes }: ThreeDotsMenuProps) => {
const MeatballsMenu = ({ options, classes }: MeatballsMenuProps) => {
return (
<DropdownButton
type={'v2'}
Expand All @@ -45,4 +45,4 @@ const ThreeDotsMenu = ({ options, classes }: ThreeDotsMenuProps) => {
);
};

export default ThreeDotsMenu;
export default MeatballsMenu;
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
*/
import { Meta, StoryObj } from '@storybook/react';
import Icon from '../../../components/Icons';
import ThreeDotsMenu, { ThreeDotsMenuProps } from '../../../components/Menu/ThreeDotsMenu';
import MeatballsMenu, { MeatballsMenuProps } from '../../../components/Menu/MeatballsMenu';

const meta: Meta<ThreeDotsMenuProps> = {
title: 'Components/Menu/ThreeDotsMenu',
component: ThreeDotsMenu,
const meta: Meta<MeatballsMenuProps> = {
title: 'Components/Menu/MeatballsMenu',
component: MeatballsMenu,
decorators: [
(story) => {
return (
Expand All @@ -29,7 +29,7 @@ const meta: Meta<ThreeDotsMenuProps> = {
};
export default meta;

type Story = StoryObj<typeof ThreeDotsMenu>;
type Story = StoryObj<typeof MeatballsMenu>;

export const Primary: Story = {
args: {
Expand Down

0 comments on commit 57aef46

Please sign in to comment.