mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-01-18 19:56:01 +01:00
hide upload image button when user can not edit pack
This commit is contained in:
parent
f4bf351743
commit
4618ab5cdc
1 changed files with 52 additions and 48 deletions
|
@ -330,8 +330,10 @@ export const ImagePackContent = as<'div', ImagePackContentProps>(
|
|||
/>
|
||||
</SequenceCard>
|
||||
</Box>
|
||||
{images.length === 0 && !canEdit ? null : (
|
||||
<Box direction="Column" gap="100">
|
||||
<Text size="L400">Images</Text>
|
||||
{canEdit && (
|
||||
<SequenceCard
|
||||
style={{ padding: config.space.S300 }}
|
||||
variant="SurfaceVariant"
|
||||
|
@ -356,6 +358,7 @@ export const ImagePackContent = as<'div', ImagePackContentProps>(
|
|||
}
|
||||
/>
|
||||
</SequenceCard>
|
||||
)}
|
||||
{files.map((file) => (
|
||||
<SequenceCard
|
||||
key={file.name}
|
||||
|
@ -378,6 +381,7 @@ export const ImagePackContent = as<'div', ImagePackContentProps>(
|
|||
{uploadedImages.map(renderImage)}
|
||||
{images.map(renderImage)}
|
||||
</Box>
|
||||
)}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue