chore(background): cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -7,13 +7,12 @@ interface LinePatternProps {
|
||||
color: string
|
||||
}
|
||||
|
||||
export const LinePattern: FunctionalComponent<LinePatternProps> = ({ dimensions, size, color }) => {
|
||||
return () =>
|
||||
h('path', {
|
||||
'stroke': color,
|
||||
'stroke-width': size,
|
||||
'd': `M${dimensions[0] / 2} 0 V${dimensions[1]} M0 ${dimensions[1] / 2} H${dimensions[0]}`,
|
||||
})
|
||||
export const LinePattern: FunctionalComponent<LinePatternProps> = function ({ dimensions, size, color }) {
|
||||
return h('path', {
|
||||
'stroke': color,
|
||||
'stroke-width': size,
|
||||
'd': `M${dimensions[0] / 2} 0 V${dimensions[1]} M0 ${dimensions[1] / 2} H${dimensions[0]}`,
|
||||
})
|
||||
}
|
||||
|
||||
interface DotPatternProps {
|
||||
@@ -21,8 +20,8 @@ interface DotPatternProps {
|
||||
color: string
|
||||
}
|
||||
|
||||
export const DotPattern: FunctionalComponent<DotPatternProps> = ({ radius, color }) => {
|
||||
return () => h('circle', { cx: radius, cy: radius, r: radius, fill: color })
|
||||
export const DotPattern: FunctionalComponent<DotPatternProps> = function ({ radius, color }) {
|
||||
return h('circle', { cx: radius, cy: radius, r: radius, fill: color })
|
||||
}
|
||||
|
||||
export const Patterns = {
|
||||
|
||||
Reference in New Issue
Block a user