Components: SpaceQuota: Removed display of quota for rooms with a provider.

This commit is contained in:
Tatiana Lopaeva 2024-03-11 14:46:54 +03:00
parent a94c56fed4
commit 57dd0e5642

View File

@ -8,6 +8,7 @@ import { ComboBox } from "@docspace/shared/components/combobox";
import { toastr } from "@docspace/shared/components/toast";
import { StyledBody, StyledText } from "./StyledComponent";
import { connectedCloudsTypeTitleTranslation } from "SRC_DIR/helpers/filesUtils";
const getOptions = (t, item, spaceLimited) => {
const items = [
@ -131,6 +132,14 @@ const SpaceQuota = (props) => {
const selectedOption = options.find((elem) => elem.action === action);
if (item.providerType) {
return (
<Text fontWeight={600}>
{connectedCloudsTypeTitleTranslation(item.providerKey, t)}{" "}
</Text>
);
}
if (withoutLimitQuota || item?.quotaLimit === undefined) {
return (
<StyledText fontWeight={600} withoutLimitQuota>