mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-25 13:57:54 +00:00
feat: initial Pezkuwi Apps rebrand from polkadot-apps
Rebranded terminology: - Polkadot → Pezkuwi - Kusama → Dicle - Westend → Zagros - Rococo → PezkuwiChain - Substrate → Bizinikiwi - parachain → teyrchain Custom logos with Kurdistan brand colors (#e6007a → #86e62a): - bizinikiwi-hexagon.svg - sora-bizinikiwi.svg - hezscanner.svg - heztreasury.svg - pezkuwiscan.svg - pezkuwistats.svg - pezkuwiassembly.svg - pezkuwiholic.svg
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
// Copyright 2017-2025 @pezkuwi/apps authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import { MarkWarning, styled } from '@pezkuwi/react-components';
|
||||
|
||||
const BrowserCheckAlert: React.FC = () => {
|
||||
const [isTargetBrowser, setIsTargetBrowser] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
const ua = navigator.userAgent;
|
||||
|
||||
// Detect Firefox
|
||||
const firefoxMatch = ua.match(/Firefox\/(\d+\.\d+)/);
|
||||
|
||||
if (firefoxMatch) {
|
||||
// Check for Firefox 145.0 specifically
|
||||
if (ua.includes('145.0')) {
|
||||
setIsTargetBrowser(true);
|
||||
}
|
||||
}
|
||||
}, []);
|
||||
|
||||
if (!isTargetBrowser) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<StyledBanner
|
||||
className='warning centered'
|
||||
withIcon={false}
|
||||
>
|
||||
|
||||
The app is having some trouble running on Firefox v145.0. To keep everything running smoothly, please upgrade Firefox to the latest version or try using a different browser.
|
||||
</StyledBanner>
|
||||
);
|
||||
};
|
||||
|
||||
const StyledBanner = styled(MarkWarning)`
|
||||
border: 1px solid #ffc107;
|
||||
background: #ffc10720;
|
||||
font-size: 1rem !important;
|
||||
margin-bottom: 5rem !important;
|
||||
`;
|
||||
|
||||
export default BrowserCheckAlert;
|
||||
Reference in New Issue
Block a user