Skip to content

Commit

Permalink
chore: run Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Mar 2, 2023
1 parent 8cb24db commit f50c4bb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ const ViewAsMenuItems = ({
icon={<IconVisualizationColumn16 />}
/>
)}
{![REPORT_TABLE, EVENT_REPORT, EVENT_VISUALIZATION].includes(activeType) && (
<MenuItem
tooltip={
notSupported
? i18n.t(
"This map can't be displayed as a table"
)
: null
}
label={i18n.t('View as Table')}
onClick={onViewTable}
disabled={notSupported}
icon={<IconTable16 />}
/>
)}
{![REPORT_TABLE, EVENT_REPORT, EVENT_VISUALIZATION].includes(
activeType
) && (
<MenuItem
tooltip={
notSupported
? i18n.t("This map can't be displayed as a table")
: null
}
label={i18n.t('View as Table')}
onClick={onViewTable}
disabled={notSupported}
icon={<IconTable16 />}
/>
)}
{hasMapView(type) && activeType !== MAP && (
<MenuItem
label={i18n.t('View as Map')}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { useD2 } from '@dhis2/app-runtime-adapter-d2'
import postRobot from '@krakenjs/post-robot'
import PropTypes from 'prop-types'
import React, {
useRef,
useCallback,
useState,
useEffect,
} from 'react'
import React, { useRef, useCallback, useState, useEffect } from 'react'
import { itemTypeMap } from '../../../../modules/itemTypes.js'
import { getPluginOverrides } from '../../../../modules/localStorage.js'
import { useCacheableSection } from '../../../../modules/useCacheableSection.js'
Expand Down

0 comments on commit f50c4bb

Please sign in to comment.