This repository was archived by the owner on Nov 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,17 @@ export default function Apps() {
4242 ) ;
4343
4444 const provider = LocalStorage . get < Provider > ( LS_PROVIDER ) ;
45- const newAppHref = `/apps/new/${ provider } ` ;
45+
46+ if ( loading && ! filter ) {
47+ return (
48+ < Box sx = { { width : "100%" , position : "relative" , mt : - 2 } } >
49+ < Card loading = { true } />
50+ </ Box >
51+ ) ;
52+ }
4653
4754 // This can happen if the self-hosted user has no provider configured
48- if ( ! provider ) {
55+ if ( ! provider && apps . length === 0 ) {
4956 return (
5057 < Box sx = { { width : "100%" } } maxWidth = "lg" >
5158 < Card sx = { { px : { xs : 1 , md : 4 } } } >
@@ -62,9 +69,15 @@ export default function Apps() {
6269 ) ;
6370 }
6471
65- const importFromProvider = `Import from ${ providerToText [ provider ] } ` ;
72+ const importFromProvider = provider
73+ ? `Import from ${ providerToText [ provider ] } `
74+ : "Configure authentication" ;
75+
76+ const newAppHref = provider
77+ ? `/apps/new/${ provider } `
78+ : "https://www.stormkit.io/docs/welcome/self-hosting#authentication" ;
6679
67- if ( apps . length === 0 && ! loading && ! filter ) {
80+ if ( apps . length === 0 && ! filter ) {
6881 return (
6982 < Box sx = { { width : "100%" } } maxWidth = "lg" >
7083 < Card sx = { { px : { xs : 1 , md : 4 } } } >
You can’t perform that action at this time.
0 commit comments