Rename shapes to semantic meanings

It looks like after all I do want to fork based on those.
This commit is contained in:
Dan Abramov
2024-11-02 12:48:39 +00:00
parent d600cc3343
commit 852b8ae271
6 changed files with 8 additions and 8 deletions
@@ -309,9 +309,9 @@ const ImageItem = ({
width: SCREEN.width,
height: imageAspect ? SCREEN.width / imageAspect : undefined,
borderRadius:
imageSrc.shape === 'circle'
imageSrc.type === 'circle-avi'
? SCREEN.width / 2
: imageSrc.shape === 'rounded-rect'
: imageSrc.type === 'rect-avi'
? 20
: 0,
}}
@@ -138,9 +138,9 @@ const ImageItem = ({
width: SCREEN.width,
height: imageAspect ? SCREEN.width / imageAspect : undefined,
borderRadius:
imageSrc.shape === 'circle'
imageSrc.type === 'circle-avi'
? SCREEN.width / 2
: imageSrc.shape === 'rounded-rect'
: imageSrc.type === 'rect-avi'
? 20
: 0,
}}