Промежуточный этап синхронизации
This commit is contained in:
@@ -8,7 +8,7 @@ import { MacFrameButtons } from "../MacFrameButtons/MacFrameButtons";
|
||||
|
||||
export function Topbar() {
|
||||
const colors = useRosettaColors();
|
||||
const protocolState = useProtocolState();
|
||||
const [protocolState] = useProtocolState();
|
||||
|
||||
|
||||
return (
|
||||
@@ -16,14 +16,14 @@ export function Topbar() {
|
||||
{window.platform == 'win32' && <WindowsFrameButtons></WindowsFrameButtons>}
|
||||
{window.platform == 'darwin' && <MacFrameButtons></MacFrameButtons>}
|
||||
{window.platform == 'linux' && <WindowsFrameButtons></WindowsFrameButtons>}
|
||||
{(protocolState == ProtocolState.CONNECTED || !window.location.hash.includes("main")) &&
|
||||
{(protocolState == ProtocolState.CONNECTED || protocolState == ProtocolState.SYNCHRONIZATION || !window.location.hash.includes("main")) &&
|
||||
<Flex align={'center'} justify={'center'}>
|
||||
<Text fw={'bolder'} fz={13} c={'gray'}>
|
||||
Rosetta Messenger
|
||||
</Text>
|
||||
</Flex>
|
||||
}
|
||||
{(protocolState != ProtocolState.CONNECTED && protocolState != ProtocolState.DEVICE_VERIFICATION_REQUIRED && window.location.hash.includes("main")) &&
|
||||
{(protocolState != ProtocolState.CONNECTED && protocolState != ProtocolState.SYNCHRONIZATION && protocolState != ProtocolState.DEVICE_VERIFICATION_REQUIRED && window.location.hash.includes("main")) &&
|
||||
<Flex align={'center'} gap={5} justify={'center'}>
|
||||
<Loader size={12} color={colors.chevrons.active}></Loader>
|
||||
<Text fw={'bolder'} fz={13} c={'gray'}>
|
||||
|
||||
Reference in New Issue
Block a user