mirror of
https://github.com/Lifeforge-app/lifeforge.git
synced 2026-06-28 06:46:24 +00:00
fix(client): correct type definition for quoteQuery in Quotes component
This commit is contained in:
@@ -9,12 +9,12 @@ import tinycolor from 'tinycolor2'
|
||||
import forgeAPI from '@/forgeAPI'
|
||||
|
||||
export default function Quotes() {
|
||||
const quoteQuery = useQuery(
|
||||
forgeAPI.corsAnywhere
|
||||
.input({
|
||||
const quoteQuery = useQuery<{ q: string; a: string }[]>(
|
||||
forgeAPI
|
||||
.corsAnywhere({
|
||||
url: 'https://zenquotes.io/api/random'
|
||||
})
|
||||
.queryOptions()
|
||||
.queryOptions() as never
|
||||
)
|
||||
|
||||
const { derivedThemeColor: themeColor } = usePersonalization()
|
||||
|
||||
Reference in New Issue
Block a user