@taruvi/navkit 0.0.12 → 0.0.13

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.12",
3
+ "version": "0.0.13",
4
4
  "main": "src/App.tsx",
5
5
  "type": "module",
6
6
  "scripts": {
package/src/App.tsx CHANGED
@@ -7,7 +7,8 @@ import { AppLauncher, Profile, ProfileMenu, Shortcuts, ShortcutsMenu, Mattermost
7
7
  import { Box, Modal, Card } from "@mui/material"
8
8
  import { getAppStyles } from "./App.styles"
9
9
  import { NavkitProvider, useNavigation } from "./NavkitContext"
10
- import defaultLogo from "./assets/taruvi-logo.png"
10
+ import blackLogo from "./assets/taruvi-logo-white.png"
11
+ import whiteLogo from "./assets/taruvi-logo-black.png"
11
12
  import type { Client } from "@taruvi/sdk"
12
13
 
13
14
  const NavkitContent = () => {
@@ -40,7 +41,7 @@ const NavkitContent = () => {
40
41
  }
41
42
  <img
42
43
  style={(siteSettings?.logo && siteSettings.logo !== '') ? styles.logo : styles.defaultLogo}
43
- src={(siteSettings?.logo && siteSettings.logo !== '') ? siteSettings.logo : defaultLogo}
44
+ src={(siteSettings?.logo && siteSettings.logo !== '') ? siteSettings.logo : (themeMode === 'light' ? whiteLogo : blackLogo)}
44
45
  onClick={() => window.location.href = siteSettings.frontendUrl || '/desk'}
45
46
  />
46
47
  </Box>
Binary file
Binary file