fix: hide quota display for regular users
Browse files
web/src/app/image/components/image-composer.tsx
CHANGED
|
@@ -183,9 +183,11 @@ export function ImageComposer({
|
|
| 183 |
<ImagePlus className="size-3.5 sm:size-4" />
|
| 184 |
<span className="hidden sm:inline">{referenceImages.length > 0 ? "添加参考图" : "上传"}</span>
|
| 185 |
</Button>
|
|
|
|
| 186 |
<div className="shrink-0 rounded-full bg-stone-100 px-2 py-1 text-[10px] font-medium text-stone-600 sm:px-3 sm:py-2 sm:text-xs">
|
| 187 |
<span className="hidden sm:inline">剩余额度 </span>{availableQuota}
|
| 188 |
</div>
|
|
|
|
| 189 |
{activeTaskCount > 0 && (
|
| 190 |
<div className="flex shrink-0 items-center gap-1 rounded-full bg-amber-50 px-2 py-1 text-[10px] font-medium text-amber-700 sm:gap-1.5 sm:px-3 sm:py-2 sm:text-xs">
|
| 191 |
<LoaderCircle className="size-3 animate-spin" />
|
|
|
|
| 183 |
<ImagePlus className="size-3.5 sm:size-4" />
|
| 184 |
<span className="hidden sm:inline">{referenceImages.length > 0 ? "添加参考图" : "上传"}</span>
|
| 185 |
</Button>
|
| 186 |
+
{availableQuota !== "--" && (
|
| 187 |
<div className="shrink-0 rounded-full bg-stone-100 px-2 py-1 text-[10px] font-medium text-stone-600 sm:px-3 sm:py-2 sm:text-xs">
|
| 188 |
<span className="hidden sm:inline">剩余额度 </span>{availableQuota}
|
| 189 |
</div>
|
| 190 |
+
)}
|
| 191 |
{activeTaskCount > 0 && (
|
| 192 |
<div className="flex shrink-0 items-center gap-1 rounded-full bg-amber-50 px-2 py-1 text-[10px] font-medium text-amber-700 sm:gap-1.5 sm:px-3 sm:py-2 sm:text-xs">
|
| 193 |
<LoaderCircle className="size-3 animate-spin" />
|