refactor: added support for base url using a shared function
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { ComponentChildren, createContext, JSX } from 'preact'
|
||||
import { StateUpdater, useContext, useEffect, useState } from 'preact/hooks'
|
||||
import { User } from '../../shared/model'
|
||||
import { prependBaseUrl, server } from '../api'
|
||||
|
||||
import { server } from '../api'
|
||||
import { prependBaseUrl } from '../../shared/utils'
|
||||
|
||||
type UserContextValue = {
|
||||
ready: boolean
|
||||
|
||||
Reference in New Issue
Block a user