Skip to content

Commit 79d677f

Browse files
committed
docs(vue): fix markup
1 parent d729f6f commit 79d677f

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/components/markdown/DemoIntegrations.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ const formatParam = (param, useRealJson = false) => {
4242
const DemoIntegrations = ({ caption, parameters = {}, showCard = true }) => {
4343
const params = useMemo(() => ({ ...DEFAULTS, ...parameters }), [parameters])
4444
const paramKeys = useMemo(() => Object.keys(params), [params])
45-
const withoutUrl = useMemo(() => paramKeys.filter(k => k !== 'url'), [
46-
paramKeys
47-
])
45+
const withoutUrl = useMemo(
46+
() => paramKeys.filter(k => k !== 'url'),
47+
[paramKeys]
48+
)
4849

4950
const react = useMemo(
5051
() =>
@@ -73,7 +74,7 @@ const DemoIntegrations = ({ caption, parameters = {}, showCard = true }) => {
7374
const param = params[key]
7475
const prefix = typeof param === 'string' ? '' : ':'
7576
const attr = `${prefix}${kebabCase(key)}`
76-
return `\n\t\t${attr}="${formatParam(param)}"`
77+
return `\n ${attr}="${formatParam(param)}"`
7778
})
7879
.join(' '),
7980
[params, paramKeys]
@@ -107,9 +108,10 @@ const DemoIntegrations = ({ caption, parameters = {}, showCard = true }) => {
107108
return jParams.length ? ` ${jParams}` : ''
108109
}, [params, withoutUrl])
109110

110-
const vanilla = useMemo(() => (jsObject.length ? `, { ${jsObject} }` : ''), [
111-
jsObject
112-
])
111+
const vanilla = useMemo(
112+
() => (jsObject.length ? `, { ${jsObject} }` : ''),
113+
[jsObject]
114+
)
113115

114116
return (
115117
<>
@@ -120,7 +122,8 @@ const DemoIntegrations = ({ caption, parameters = {}, showCard = true }) => {
120122
<Microlink ${react} />
121123
`,
122124
Vue: `<template>
123-
<Microlink ${vue} />
125+
<Microlink ${vue}
126+
/>
124127
</template>
125128
`,
126129

0 commit comments

Comments
 (0)