feat[react]: Linting with eslint 9
This commit is contained in:
parent
14eab04d5b
commit
f69093b0dc
99 changed files with 1260 additions and 956 deletions
|
@ -68,9 +68,11 @@ async function withoutBody(method = 'GET', url, headers = {}, raw = false, log =
|
|||
try {
|
||||
body = raw ? await response.text() : await response.json()
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
try {
|
||||
body = await response.text()
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
body = false
|
||||
}
|
||||
}
|
||||
|
@ -125,9 +127,11 @@ async function withBody(method = 'POST', url, data, headers, raw = false, log =
|
|||
try {
|
||||
body = raw ? await response.text() : await response.json()
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
try {
|
||||
body = await response.text()
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
body = false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
import React from 'react'
|
||||
|
||||
const html = (
|
||||
<>
|
||||
<button className="tw:btn-ghost">
|
||||
<span className="tw:px-1 tw:text-sm tw:font-medium tw:whitespace-nowrap tw:border-2 tw:border-solid tw:rounded-l-lg tw:text-primary-content tw:bg-primary tw:border-primary ">
|
||||
Code
|
||||
</span>
|
||||
<span className="tw:px-1 tw:text-sm tw:font-medium tw:whitespace-nowrap tw:border-2 tw:border-solid tw:rounded-r-lg tw:text-primary tw:bg-base-100 tw:border-primary ">
|
||||
Joost De Cock
|
||||
</span>
|
||||
</button>
|
||||
</>
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue