@digilogiclabs/create-saas-app 1.6.3 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/templates/web/base/template/src/app/page.tsx +19 -10
- package/dist/templates/web/ui-auth/template/src/app/page.tsx +20 -11
- package/dist/templates/web/ui-auth-payments/template/src/app/page.tsx +20 -11
- package/dist/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +17 -10
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +17 -11
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +20 -15
- package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +20 -11
- package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +22 -15
- package/package.json +1 -1
- package/src/templates/web/base/template/src/app/page.tsx +19 -10
- package/src/templates/web/ui-auth/template/src/app/page.tsx +20 -11
- package/src/templates/web/ui-auth-payments/template/src/app/page.tsx +20 -11
- package/src/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +17 -10
- package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +17 -11
- package/src/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +20 -15
- package/src/templates/web/ui-auth-payments-video/template/src/app/page.tsx +20 -11
- package/src/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +22 -15
|
@@ -18,6 +18,26 @@ export function Header() {
|
|
|
18
18
|
const networkInfo = useNetworkInfo();
|
|
19
19
|
const isOnline = useOfflineState();
|
|
20
20
|
|
|
21
|
+
const projectName = "{{titleCaseName}}";
|
|
22
|
+
|
|
23
|
+
const headerConfig = {
|
|
24
|
+
logo: {
|
|
25
|
+
text: projectName,
|
|
26
|
+
href: '/',
|
|
27
|
+
className: 'text-2xl font-bold flex items-center gap-2',
|
|
28
|
+
icon: <Play className="w-6 h-6" />
|
|
29
|
+
},
|
|
30
|
+
networkStatus: {
|
|
31
|
+
isOnline,
|
|
32
|
+
connectionType: networkInfo?.effectiveType,
|
|
33
|
+
showIndicator: true,
|
|
34
|
+
customLabels: {
|
|
35
|
+
online: 'Streaming Ready',
|
|
36
|
+
offline: 'Offline Mode'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
21
41
|
const handleSignOut = async () => {
|
|
22
42
|
try {
|
|
23
43
|
await signOut();
|
|
@@ -119,12 +139,7 @@ export function Header() {
|
|
|
119
139
|
)}
|
|
120
140
|
|
|
121
141
|
<ResponsiveHeader
|
|
122
|
-
logo={
|
|
123
|
-
text: '{{titleCaseName}}',
|
|
124
|
-
href: '/',
|
|
125
|
-
className: 'text-2xl font-bold flex items-center gap-2',
|
|
126
|
-
icon: <Play className="w-6 h-6" />
|
|
127
|
-
}}
|
|
142
|
+
logo={headerConfig.logo}
|
|
128
143
|
navigationItems={navigationItems}
|
|
129
144
|
actions={authActions}
|
|
130
145
|
showThemeToggle={true}
|
|
@@ -138,15 +153,7 @@ export function Header() {
|
|
|
138
153
|
hapticFeedback={true}
|
|
139
154
|
/>
|
|
140
155
|
}
|
|
141
|
-
networkStatus={
|
|
142
|
-
isOnline,
|
|
143
|
-
connectionType: networkInfo?.effectiveType,
|
|
144
|
-
showIndicator: true,
|
|
145
|
-
customLabels: {
|
|
146
|
-
online: 'Streaming Ready',
|
|
147
|
-
offline: 'Offline Mode'
|
|
148
|
-
}
|
|
149
|
-
}}
|
|
156
|
+
networkStatus={headerConfig.networkStatus}
|
|
150
157
|
/>
|
|
151
158
|
</>
|
|
152
159
|
);
|