Skip to content

Commit

Permalink
Merge pull request #318 from DAOmasons/fixRadius
Browse files Browse the repository at this point in the history
make all badge displays circles
  • Loading branch information
jordanlesich authored Aug 30, 2024
2 parents a54d297 + 8531925 commit cce678f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/components/dashboard/facilitator/BadgeMintDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ export const BadgeMintDrawer = ({
bg={theme.colors.dark[5]}
src={selectedTemplate.templateMetadata.imgUrl}
size={240}
radius={'sm'}
pos="relative"
/>
<TxButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ export const BadgeTemplateDrawer = ({
bg={theme.colors.dark[5]}
src={canPreview ? avatarPreview : undefined}
size={240}
radius={'sm'}
pos="relative"
>
<InputLabel
Expand Down
6 changes: 1 addition & 5 deletions src/components/dashboard/facilitator/DeleteBadgeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ export const DeleteBadgeModal = ({
>
<Modal.Body>
<Group w="100%" justify="center" my="xl">
<Avatar
src={template.templateMetadata.imgUrl || ''}
size={248}
radius="sm"
/>
<Avatar src={template.templateMetadata.imgUrl || ''} size={248} />
</Group>
<Group justify="flex-end" mt="md">
<Button variant="secondary" onClick={onClose}>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/BadgeManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export const BadgeManager = ({
bg={theme.colors.dark[5]}
src={selectedTemplate?.templateMetadata.imgUrl || undefined}
size={240}
radius={'sm'}
pos="relative"
>
<IconBadge size={80} />
Expand Down Expand Up @@ -139,7 +138,6 @@ export const BadgeManager = ({
<Avatar
key={template.badgeId}
size={94}
radius="sm"
src={template.templateMetadata.imgUrl || ''}
onClick={() => selectTemplate(template)}
>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ const BadgeTab = ({
src={badge.imgUrl}
key={badge.id}
size={80}
radius="md"
onClick={() => handleOpen(badge)}
/>
))}
Expand All @@ -227,7 +226,7 @@ const BadgeTab = ({
>
<Modal.Body>
<Flex w="100%" gap="sm" mb="xl">
<Avatar src={selectedBadge?.imgUrl} size={200} radius="md" />
<Avatar src={selectedBadge?.imgUrl} size={200} />
<Stack gap={4}>
<Text fw={600} mb="xs">
{selectedBadge?.name}
Expand Down

0 comments on commit cce678f

Please sign in to comment.