fix: cross domain SVG sprites (#16244)
This commit is contained in:
1 parent
aab9193e7b
commit
101fea2c1c
10 files changed
+53
-3
No files matched your search
@@ -12,7 +12,7 @@ function Icon({
|
||||
}) {
|
||||
return (
|
||||
<svg height={size} width={size} {...props} aria-hidden>
|
||||
<use href={`/icons/sprite.svg#${name}`} />
|
||||
<use href={`#${name}`} />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as React from "react";
|
||||
import SVG from "react-inlinesvg";
|
||||
|
||||
export function IconSprites() {
|
||||
return (
|
||||
<SVG
|
||||
src={`${process.env.NEXT_PUBLIC_WEBAPP_URL}/icons/sprite.svg?v=${process.env.NEXT_PUBLIC_CALCOM_VERSION}`}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export default IconSprites;
|
||||
Reference in new issue
Block a user