Skip to content

Commit

Permalink
feat: Update image Skeleton rounded
Browse files Browse the repository at this point in the history
  • Loading branch information
Vibes-INS committed Oct 14, 2021
1 parent 765c96c commit f833e29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/mibao-ui/src/lib/image/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const Image = (props: ImageProps) => {
// loading element
const loaderEl = useMemo(() => {
if (props.loader) return props.loader
return <Skeleton width="100%" height="100%" />
}, [props.loader])
return <Skeleton width="100%" height="100%" rounded={props.rounded} />
}, [props.loader, props.rounded])
// src
const imageSrc = useMemo(() => {
if (!props.src) return props.src
Expand Down

0 comments on commit f833e29

Please sign in to comment.