feat(core): get cloud workspace usage limit from user quota (#5518)

This commit is contained in:
JimmFly
2024-01-16 07:57:23 +00:00
parent d6dd837bdb
commit baeb5cc732
3 changed files with 12 additions and 3 deletions

View File

@@ -68,7 +68,11 @@ export const StorageProgress = ({
{upgradable ? (
<Tooltip
options={{ hidden: percent < 100 }}
content={t['com.affine.storage.maximum-tips']()}
content={
plan === 'Free'
? t['com.affine.storage.maximum-tips']()
: t['com.affine.storage.maximum-tips.pro']()
}
>
<span tabIndex={0}>
<Button