@taruvi/navkit 0.0.32 → 0.0.33-beta.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taruvi/navkit",
3
- "version": "0.0.32",
3
+ "version": "0.0.33-beta.0",
4
4
  "main": "src/App.tsx",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -86,7 +86,7 @@ export const NavkitProvider = ({ children, client, onThemeChange, appName }: Nav
86
86
 
87
87
  // Fetch app settings to get the app name
88
88
  try {
89
- const { data } = await new App(client).settings().execute() as { data: { display_name?: string, icon?: string, primary_color?: string, secondary_color?: string } }
89
+ const { data } = appName ? { data: { display_name: appName } } : await new App(client).settings().execute() as { data: { display_name?: string, icon?: string, primary_color?: string, secondary_color?: string } }
90
90
  appSettings.current = {
91
91
  displayName: data?.display_name,
92
92
  icon: data?.icon,