Skip to content

Commit ef3bd03

Browse files
author
Katarzyna Ziomek-Zdanowicz
committed
FN Remove tenary expressions with explicit booleans in DashNav
1 parent 04213d1 commit ef3bd03

File tree

1 file changed

+5
-5
lines changed
  • public/app/features/dashboard/components/DashNav

1 file changed

+5
-5
lines changed

public/app/features/dashboard/components/DashNav/DashNav.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export const DashNav = React.memo<Props>((props) => {
275275
icon="monitor"
276276
onClick={onToggleTVMode}
277277
key="tv-button"
278-
isHidden={FNDashboard ? true : false}
278+
isHidden={!!FNDashboard}
279279
/>
280280
);
281281

@@ -294,7 +294,7 @@ export const DashNav = React.memo<Props>((props) => {
294294
icon="panel-add"
295295
onClick={onAddPanel}
296296
key="button-panel-add"
297-
isHidden={FNDashboard ? true : false}
297+
isHidden={!!FNDashboard}
298298
/>
299299
);
300300
}
@@ -312,7 +312,7 @@ export const DashNav = React.memo<Props>((props) => {
312312
onDismiss: hideModal,
313313
});
314314
}}
315-
isHidden={FNDashboard ? true : false}
315+
isHidden={!!FNDashboard}
316316
/>
317317
)}
318318
</ModalsController>
@@ -326,7 +326,7 @@ export const DashNav = React.memo<Props>((props) => {
326326
onClick={() => gotoSnapshotOrigin(snapshotUrl)}
327327
icon="link"
328328
key="button-snapshot"
329-
isHidden={FNDashboard ? true : false}
329+
isHidden={!!FNDashboard}
330330
/>
331331
);
332332
}
@@ -338,7 +338,7 @@ export const DashNav = React.memo<Props>((props) => {
338338
icon="cog"
339339
onClick={onOpenSettings}
340340
key="button-settings"
341-
isHidden={FNDashboard ? true : false}
341+
isHidden={!!FNDashboard}
342342
/>
343343
);
344344
}

0 commit comments

Comments
 (0)