Fix: Don't show margins around disabled elements in the Dashboard (#946)
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
|||||||
|
|
||||||
export const Controls = ({ isEnabled }: ControlsProps): JSX.Element => {
|
export const Controls = ({ isEnabled }: ControlsProps): JSX.Element => {
|
||||||
if (!isEnabled) {
|
if (!isEnabled) {
|
||||||
return <box />;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { LeftLink1, LeftLink2, LeftLink3, RightLink1, RightLink2, RightLink3 } f
|
|||||||
|
|
||||||
export const Directories = ({ isEnabled }: DirectoriesProps): JSX.Element => {
|
export const Directories = ({ isEnabled }: DirectoriesProps): JSX.Element => {
|
||||||
if (!isEnabled) {
|
if (!isEnabled) {
|
||||||
return <box />;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export const Shortcuts = ({ isEnabled }: ShortcutsProps): JSX.Element => {
|
|||||||
recordingPoller.initialize();
|
recordingPoller.initialize();
|
||||||
|
|
||||||
if (!isEnabled) {
|
if (!isEnabled) {
|
||||||
return <box />;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ initializePollers(cpuService, ramService, gpuService, storageService);
|
|||||||
|
|
||||||
export const Stats = ({ isEnabled }: StatsProps): JSX.Element => {
|
export const Stats = ({ isEnabled }: StatsProps): JSX.Element => {
|
||||||
if (!isEnabled) {
|
if (!isEnabled) {
|
||||||
return <box />;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user