Skip to content

Commit

Permalink
UICAL-285 - refine
Browse files Browse the repository at this point in the history
  • Loading branch information
Terala-Priyanka committed Sep 28, 2024
1 parent b77986a commit f6232dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/panes/InfoPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { generateExceptionalOpeningRows } from '../../utils/InfoPaneUtils';
import ifPermissionOr from '../../utils/ifPermissionOr';
import css from './InfoPane.css';

const DCB_CALENDAR = 'DCB Calendar';
export interface InfoPaneProps {
creationBasePath: string;
editBasePath: string;
Expand Down Expand Up @@ -120,7 +121,7 @@ export const InfoPane: FunctionComponent<InfoPaneProps> = (
onClose={props.onClose}
dismissible
actionMenu={({ onToggle }) => {
if ( calendar.name === 'DCB Calendar') {
if (calendar.name === DCB_CALENDAR) {
return null;
}
return ifPermissionOr(
Expand Down

0 comments on commit f6232dd

Please sign in to comment.