Components: SpaceQuota: Removed display of quota for rooms with a provider.
This commit is contained in:
parent
a94c56fed4
commit
57dd0e5642
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user