@taruvi/navkit 0.0.7 → 0.0.8
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/package.json +1 -1
- package/src/App.tsx +1 -1
- package/src/NavkitContext.tsx +1 -2
package/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -31,7 +31,7 @@ const NavkitContent = () => {
|
|
|
31
31
|
<AppBar position="static" sx={appStyles.appBar}>
|
|
32
32
|
<Toolbar sx={appStyles.toolbar}>
|
|
33
33
|
<Box component={"div"} sx={appStyles.leftSection}>
|
|
34
|
-
{isUserAuthenticated &&
|
|
34
|
+
{isUserAuthenticated && appsList.length > 0 &&
|
|
35
35
|
<IconButton onClick={() => setShowAppLauncher(!showAppLauncher)}>
|
|
36
36
|
<FontAwesomeIcon icon={["fas", "th"]} style={appStyles.iconStyle} />
|
|
37
37
|
</IconButton>
|
package/src/NavkitContext.tsx
CHANGED
|
@@ -29,7 +29,6 @@ export const NavkitProvider = ({ children, client }: NavkitProviderProps) => {
|
|
|
29
29
|
const checkIfDesk = async () => {
|
|
30
30
|
const fetchedSettings = await settings?.current?.get?.()
|
|
31
31
|
const frontendUrl = fetchedSettings?.data?.frontendUrl
|
|
32
|
-
// const frontendUrl = "http://localhost:5173/desk"
|
|
33
32
|
if (!frontendUrl) return false
|
|
34
33
|
return window.location.href.includes(frontendUrl || '')
|
|
35
34
|
}
|
|
@@ -74,7 +73,7 @@ export const NavkitProvider = ({ children, client }: NavkitProviderProps) => {
|
|
|
74
73
|
const transformedApps: AppData[] = (appsResponse?.data || []).map?.((app: any) => ({
|
|
75
74
|
id: app.slug,
|
|
76
75
|
appname: app.display_name || app.name,
|
|
77
|
-
icon: app.icon,
|
|
76
|
+
icon: app.icon || "fa-solid fa-question",
|
|
78
77
|
url: app.url
|
|
79
78
|
}))
|
|
80
79
|
startTransition(() => {
|