@@ -32,10 +32,8 @@ import {
32
32
startPreviewConnectedMonitoring ,
33
33
} from '../components/editor/preview-report-handler'
34
34
import {
35
- downloadGithubRepo ,
36
35
getLoginState ,
37
36
getUserConfiguration ,
38
- isRequestFailure ,
39
37
startPollingLoginState ,
40
38
} from '../components/editor/server'
41
39
import {
@@ -82,12 +80,7 @@ import {
82
80
ElementsToRerenderGLOBAL ,
83
81
} from '../components/canvas/ui-jsx-canvas'
84
82
import { foldEither } from '../core/shared/either'
85
- import {
86
- getURLImportDetails ,
87
- importZippedGitProject ,
88
- isProjectImportSuccess ,
89
- reuploadAssets ,
90
- } from '../core/model/project-import'
83
+ import { getURLImportDetails , reuploadAssets } from '../core/model/project-import'
91
84
import { isSendPreviewModel , load } from '../components/editor/actions/actions'
92
85
import { UtopiaStyles } from '../uuiui'
93
86
import { reduxDevtoolsSendInitialState } from '../core/shared/redux-devtools'
@@ -111,10 +104,7 @@ import { waitUntil } from '../core/shared/promise-utils'
111
104
import { sendSetVSCodeTheme } from '../core/vscode/vscode-bridge'
112
105
import type { ElementPath } from '../core/shared/project-file-types'
113
106
import { uniqBy } from '../core/shared/array-utils'
114
- import {
115
- startGithubPolling ,
116
- updateUserDetailsWhenAuthenticated ,
117
- } from '../core/shared/github/helpers'
107
+ import { updateUserDetailsWhenAuthenticated } from '../core/shared/github/helpers'
118
108
import { DispatchContext } from '../components/editor/store/dispatch-context'
119
109
import {
120
110
logSelectorTimings ,
@@ -124,11 +114,7 @@ import { createPerformanceMeasure } from '../components/editor/store/editor-disp
124
114
import { runDomWalkerAndSaveResults } from '../components/canvas/editor-dispatch-flow'
125
115
import { simpleStringifyActions } from '../components/editor/actions/action-utils'
126
116
import { unpatchedCreateRemixDerivedDataMemo } from '../components/editor/store/remix-derived-data'
127
- import {
128
- emptyProjectServerState ,
129
- ProjectServerState ,
130
- ProjectServerStateUpdater ,
131
- } from '../components/editor/store/project-server-state'
117
+ import { emptyProjectServerState } from '../components/editor/store/project-server-state'
132
118
import { GithubOperations } from '../core/shared/github/operations'
133
119
import { GithubAuth } from '../utils/github-auth'
134
120
import { Provider as JotaiProvider } from 'jotai'
@@ -824,14 +810,14 @@ async function renderProjectNotFound(): Promise<void> {
824
810
const rootElement = document . getElementById ( EditorID )
825
811
if ( rootElement != null ) {
826
812
const root = createRoot ( rootElement )
827
- root . render ( < ProjectNotFound /> )
813
+ root . render ( < ProjectNotFound projectId = { null } loggedIn = { false } /> )
828
814
}
829
815
}
830
816
831
- async function renderProjectNotAuthorized ( projectId : string ) : Promise < void > {
817
+ async function renderProjectNotAuthorized ( projectId : string , loggedIn : boolean ) : Promise < void > {
832
818
const rootElement = document . getElementById ( EditorID )
833
819
if ( rootElement != null ) {
834
820
const root = createRoot ( rootElement )
835
- root . render ( < ProjectNotFound projectId = { projectId } /> )
821
+ root . render ( < ProjectNotFound projectId = { projectId } loggedIn = { loggedIn } /> )
836
822
}
837
823
}
0 commit comments