diff --git a/src/additional-components/Background/index.tsx b/src/additional-components/Background/index.tsx index 5209d6b0..dd68fc42 100644 --- a/src/additional-components/Background/index.tsx +++ b/src/additional-components/Background/index.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo, HTMLAttributes } from 'react'; +import React, { memo, HTMLAttributes } from 'react'; import cc from 'classcat'; import { useStoreState } from '../../store/hooks'; @@ -34,25 +34,26 @@ const Background = ({ const xOffset = x % scaledGap; const yOffset = y % scaledGap; - const bgSvgTile = useMemo(() => { - const isLines = variant === BackgroundVariant.Lines; - const bgColor = color ? color : defaultColors[variant]; - const path = isLines ? createGridLinesPath(scaledGap, size, bgColor) : createGridDotsPath(size, bgColor); - return encodeURIComponent( - `` - ); - }, [variant, scaledGap, size, color]); + const isLines = variant === BackgroundVariant.Lines; + const bgColor = color ? color : defaultColors[variant]; + const path = isLines ? createGridLinesPath(scaledGap, size, bgColor) : createGridDotsPath(size, bgColor); return ( -
+ > +