Skip to content

Commit

Permalink
fix: remove divider
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Jan 16, 2025
1 parent 585be0d commit 9d5a69c
Showing 1 changed file with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import React, { useState } from 'react';
import { FlyoutMenu, IconMore16, MenuItem, MenuDivider } from '@dhis2/ui';
import { FlyoutMenu, IconMore16, MenuItem } from '@dhis2/ui';
import i18n from '@dhis2/d2-i18n';
import type { PlainProps } from './OverflowMenu.types';
import { DeleteMenuItem, DeleteModal } from './Delete';
Expand Down Expand Up @@ -39,16 +39,13 @@ export const OverflowMenuComponent = ({
component={
<FlyoutMenu dense>
{displayChangelog && (
<>
<MenuItem
label={i18n.t('View changelog')}
onClick={() => {
setChangelogIsOpen(true);
setActionsIsOpen(false);
}}
/>
<MenuDivider dense />
</>
<MenuItem
label={i18n.t('View changelog')}
onClick={() => {
setChangelogIsOpen(true);
setActionsIsOpen(false);
}}
/>
)}
{!readOnlyMode && (
<DeleteMenuItem
Expand Down

0 comments on commit 9d5a69c

Please sign in to comment.