chore: Link preview style changes

This commit is contained in:
2023-04-18 12:47:01 +01:00
parent 664d4bf976
commit 3d8269b674
10 changed files with 70 additions and 65 deletions

View File

@ -12,9 +12,8 @@ export const ProxyImg = (props: ProxyImgProps) => {
useEffect(() => {
if (src) {
proxy(src, size)
.then(a => setUrl(a))
.catch(console.warn);
const url = proxy(src, size);
setUrl(url);
}
}, [src]);