big logo nice on reconnect
This commit is contained in:
@@ -99,6 +99,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@getstation/electron-google-oauth2": "^2.1.0",
|
"@getstation/electron-google-oauth2": "^2.1.0",
|
||||||
"@nirvana/core": "*",
|
"@nirvana/core": "*",
|
||||||
|
"@nirvana/components": "*",
|
||||||
"antd": "^4.20.2",
|
"antd": "^4.20.2",
|
||||||
"axios": "^0.26.1",
|
"axios": "^0.26.1",
|
||||||
"electron-squirrel-startup": "^1.0.0",
|
"electron-squirrel-startup": "^1.0.0",
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|||||||
import { useRecoilState, useRecoilValue, useSetRecoilState } from "recoil";
|
import { useRecoilState, useRecoilValue, useSetRecoilState } from "recoil";
|
||||||
|
|
||||||
import { FaSearch } from "react-icons/fa";
|
import { FaSearch } from "react-icons/fa";
|
||||||
|
import HorizontalLogo from "../../../../components/logo/horizontal";
|
||||||
import Logo from "../Logo";
|
import Logo from "../Logo";
|
||||||
|
import { LogoType } from "../../../../components/logo/full";
|
||||||
import { useGetUserDetails } from "../../controller/index";
|
import { useGetUserDetails } from "../../controller/index";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -127,11 +129,15 @@ export default function NirvanaHeader({
|
|||||||
className="flex flex-row items-center bg-gray-100 p-4 border-b border-b-gray-200"
|
className="flex flex-row items-center bg-gray-100 p-4 border-b border-b-gray-200"
|
||||||
id="titlebar"
|
id="titlebar"
|
||||||
>
|
>
|
||||||
<Tooltip title="connected" placement="right">
|
{desktopMode === "flowState" ? (
|
||||||
<div onClick={onHeaderFocus} className="animate-pulse">
|
<HorizontalLogo type={LogoType.small} />
|
||||||
<Logo type="small" grayscale={desktopMode === "flowState"} />
|
) : (
|
||||||
</div>
|
<Tooltip title={"connected"} placement="right">
|
||||||
</Tooltip>
|
<div onClick={onHeaderFocus}>
|
||||||
|
<Logo type="small" />
|
||||||
|
</div>
|
||||||
|
</Tooltip>
|
||||||
|
)}
|
||||||
|
|
||||||
{!shouldHideSearch && (
|
{!shouldHideSearch && (
|
||||||
<div className="mx-auto flex flex-row items-center space-x-2">
|
<div className="mx-auto flex flex-row items-center space-x-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user