diff --git a/components/dashboard/src/workspaces/Workspaces.tsx b/components/dashboard/src/workspaces/Workspaces.tsx index 96d6c68bbec9a2..ec6703814770ca 100644 --- a/components/dashboard/src/workspaces/Workspaces.tsx +++ b/components/dashboard/src/workspaces/Workspaces.tsx @@ -368,160 +368,153 @@ const WorkspacesPage: FunctionComponent = () => { )} + + )} - {deleteModalVisible && ( - setDeleteModalVisible(false)} - onConfirm={handleDeleteInactiveWorkspacesConfirmation} - visible - /> - )} + {deleteModalVisible && ( + setDeleteModalVisible(false)} + onConfirm={handleDeleteInactiveWorkspacesConfirmation} + visible + /> + )} - {!isLoading && - (activeWorkspaces.length > 0 || inactiveWorkspaces.length > 0 || searchTerm ? ( - <> -
-
- - -
- {filteredActiveWorkspaces.map((info) => { - return ; - })} - {filteredActiveWorkspaces.length > 0 &&
} - {filteredInactiveWorkspaces.length > 0 && ( -
-
setShowInactive(!showInactive)} - className="flex cursor-pointer p-6 flex-row bg-pk-surface-secondary hover:bg-pk-surface-tertiary text-pk-content-tertiary rounded-xl mb-2" - > -
- -
-
-
- Inactive Workspaces  - - {filteredInactiveWorkspaces.length} - -
-
- Workspaces that have been stopped for more than 24 - hours. Inactive workspaces are automatically deleted - after 14 days.{" "} - evt.stopPropagation()} - > - Learn more - -
-
-
- {showInactive ? ( - - ) : null} -
+ {!isLoading && + (activeWorkspaces.length > 0 || inactiveWorkspaces.length > 0 || searchTerm ? ( + <> +
+
+ + +
+ {filteredActiveWorkspaces.map((info) => { + return ; + })} + {filteredActiveWorkspaces.length > 0 &&
} + {filteredInactiveWorkspaces.length > 0 && ( +
+
setShowInactive(!showInactive)} + className="flex cursor-pointer p-6 flex-row bg-pk-surface-secondary hover:bg-pk-surface-tertiary text-pk-content-tertiary rounded-xl mb-2" + > +
+ +
+
+
+ Inactive Workspaces  + + {filteredInactiveWorkspaces.length} +
+
+ Workspaces that have been stopped for more than 24 hours. + Inactive workspaces are automatically deleted after 14 days.{" "} + evt.stopPropagation()} + > + Learn more + +
+
+
{showInactive ? ( - <> - {filteredInactiveWorkspaces.map((info) => { - return ; - })} - + ) : null}
- )} - -
- {/* Show Educational if user is in gitpodIo */} - {!isDedicatedInstallation && ( -
- - - - + {showInactive ? ( + <> + {filteredInactiveWorkspaces.map((info) => { + return ; + })} + + ) : null}
)} + +
+ {/* Show Educational if user is in gitpodIo */} + {!isDedicatedInstallation && ( + - - ) : ( - - ))} - - {isEnterpriseOnboardingEnabled && isDedicatedInstallation && welcomeMessage && user && ( - - )} - + )} +
+ + ) : ( + + ))} + + {isEnterpriseOnboardingEnabled && isDedicatedInstallation && welcomeMessage && user && ( + )} );