Skip to content

Commit

Permalink
fix(GoalPage): wrap content in dropdown items
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaEats committed May 18, 2023
1 parent bd1a611 commit 9597243
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/GoalPage/GoalPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ const StyledCardActions = styled.div`
}
`;

const StyledMenuItem = styled(MenuItem)`
display: flex;
justify-content: start;
`;

export const GoalPage = ({ user, locale, ssrTime, params: { id } }: ExternalPageProps<{ id: string }>) => {
const router = useRouter();

Expand Down Expand Up @@ -321,7 +326,7 @@ export const GoalPage = ({ user, locale, ssrTime, params: { id } }: ExternalPage
<MoreVerticalIcon size="xs" ref={ref} onClick={onClick} />
)}
renderItem={({ item, cursor, index, onClick }) => (
<MenuItem
<StyledMenuItem
key={item.label}
ghost
color={item.color}
Expand All @@ -330,7 +335,7 @@ export const GoalPage = ({ user, locale, ssrTime, params: { id } }: ExternalPage
onClick={onClick}
>
{item.label}
</MenuItem>
</StyledMenuItem>
)}
/>
</span>
Expand Down

0 comments on commit 9597243

Please sign in to comment.