Commit e60a75f4 authored by Adam Parák's avatar Adam Parák 💬
Browse files

prettier:

parent 9fa10c24
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -18,9 +18,7 @@ export { useApolloNetworkStatus }
 * ApolloProviderWrapped
 * It's expected that URL Context is properly saturated
 */
const ApolloProviderWrapped: FC<PropsWithChildren> = ({
  children,
}) => {
const ApolloProviderWrapped: FC<PropsWithChildren> = ({ children }) => {
  const { http, ws } = useURLContext()

  const httpLink = useMemo(
@@ -65,11 +63,7 @@ const ApolloProviderWrapped: FC<PropsWithChildren> = ({
    [http, ws]
  )

  return (
    <ApolloProvider client={client}>
      {children}
    </ApolloProvider>
  )
  return <ApolloProvider client={client}>{children}</ApolloProvider>
}

export default ApolloProviderWrapped
+29 −33
Original line number Diff line number Diff line
/* eslint-disable consistent-default-export-name/default-export-match-filename */
import { Spinner } from "@blueprintjs/core"
import { httpGraphql, wsGraphql } from "@inject/shared/config"
import { useNotifyContext } from "@inject/shared/notification/contexts/NotifyContext"
import { URLContextProps, URLProvider } from "@inject/shared/url"
import { useSessionStorageState } from "ahooks"
import { FC, ReactNode, useEffect, useMemo, useState } from "react"
import { Spinner } from '@blueprintjs/core'
import { httpGraphql, wsGraphql } from '@inject/shared/config'
import { useNotifyContext } from '@inject/shared/notification/contexts/NotifyContext'
import { URLContextProps, URLProvider } from '@inject/shared/url'
import { useSessionStorageState } from 'ahooks'
import { FC, ReactNode, useEffect, useMemo, useState } from 'react'

const Loading = ({ err }: { err: null | string }) => (
  <div
@@ -29,11 +29,7 @@ interface ConnectionProps {
  children: ReactNode
}

const Connection: FC<ConnectionProps> = ({
    protocol,
    host_,
    children,
}) => {
const Connection: FC<ConnectionProps> = ({ protocol, host_, children }) => {
  const [host, setHost] = useSessionStorageState('host', {
    defaultValue: host_,
    deserializer: v => v,
+1 −1

File changed.

Contains only whitespace changes.