fmt
Some checks failed
deploy / test (push) Failing after 1m7s
deploy / Update templates on Mailgun (push) Has been skipped

This commit is contained in:
Untone 2024-10-02 21:29:51 +03:00
parent 6f26e09bef
commit b791de3d4e
2 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,6 @@
import { useNavigate } from '@solidjs/router'
import { Client } from '@urql/core'
import { For, Show, createEffect, createSignal, on, onMount } from 'solid-js'
import { For, Show, createSignal, onMount } from 'solid-js'
import { Draft } from '~/components/Draft'
import { useEditorContext } from '~/context/editor'
import { useLocalize } from '~/context/localize'
@ -16,7 +16,7 @@ const fetchDrafts = async (client: Client) => {
}
export const DraftsView = (props: { drafts?: Shout[] }) => {
const { client, requireAuthentication} = useSession()
const { client, requireAuthentication } = useSession()
const navigate = useNavigate()
const { publishShoutById, deleteShout } = useEditorContext()
const [drafts, setDrafts] = createSignal<Shout[]>(props.drafts || [])

View File

@ -43,10 +43,7 @@ export type SessionContextType = {
isSessionLoaded: Accessor<boolean>
loadSession: () => AuthToken | Promise<AuthToken> | undefined | null
setSession: (token: AuthToken) => void
requireAuthentication: (
callback: (() => Promise<void>) | (() => void),
modalSource: ModalSource
) => void
requireAuthentication: (callback: (() => Promise<void>) | (() => void), modalSource: ModalSource) => void
signUp: (params: SignupInput) => Promise<boolean>
signIn: (params: LoginInput) => Promise<boolean>
updateProfile: (params: UpdateProfileInput) => Promise<boolean>