about summary refs log tree commit diff
path: root/src/state/session/index.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-02-16 13:25:48 -0800
committerGitHub <noreply@github.com>2024-02-16 13:25:48 -0800
commita2f462e26195a8a29e8bacfdadda7c5bbef2305f (patch)
tree4b86bde577702fea4c65864b5c0b2bd149ac7fd8 /src/state/session/index.tsx
parentb665f065b7b63cb34bf11cb66e255131332fc7f2 (diff)
downloadvoidsky-a2f462e26195a8a29e8bacfdadda7c5bbef2305f.tar.zst
remove sandbox labels (#2883)
* rm sandbox

* remove comment
Diffstat (limited to 'src/state/session/index.tsx')
-rw-r--r--src/state/session/index.tsx6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/state/session/index.tsx b/src/state/session/index.tsx
index b555a997b..bd3b157bc 100644
--- a/src/state/session/index.tsx
+++ b/src/state/session/index.tsx
@@ -7,7 +7,6 @@ import {networkRetry} from '#/lib/async/retry'
 import {logger} from '#/logger'
 import * as persisted from '#/state/persisted'
 import {PUBLIC_BSKY_AGENT} from '#/state/queries'
-import {IS_PROD} from '#/lib/constants'
 import {emitSessionDropped} from '../events'
 import {useLoggedOutViewControls} from '#/state/shell/logged-out'
 import {useCloseAllActiveElements} from '#/state/util'
@@ -36,7 +35,6 @@ export type SessionState = {
 }
 export type StateContext = SessionState & {
   hasSession: boolean
-  isSandbox: boolean
 }
 export type ApiContext = {
   createAccount: (props: {
@@ -84,7 +82,6 @@ const StateContext = React.createContext<StateContext>({
   accounts: [],
   currentAccount: undefined,
   hasSession: false,
-  isSandbox: false,
 })
 
 const ApiContext = React.createContext<ApiContext>({
@@ -610,9 +607,6 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
     () => ({
       ...state,
       hasSession: !!state.currentAccount,
-      isSandbox: state.currentAccount
-        ? !IS_PROD(state.currentAccount?.service)
-        : false,
     }),
     [state],
   )