chore: align viewing as banner
This commit is contained in:
parent
bb6ecd2c72
commit
a0aa0065b6
@ -4,7 +4,6 @@ import {
|
||||
ExternalLink,
|
||||
Intent,
|
||||
NotificationBanner,
|
||||
SHORT,
|
||||
} from '@vegaprotocol/ui-toolkit';
|
||||
import type { StoredNextProtocolUpgradeData } from '../lib';
|
||||
import {
|
||||
@ -70,7 +69,7 @@ export const ProtocolUpgradeInProgressNotification = () => {
|
||||
if (!upgradeInProgress) return null;
|
||||
|
||||
return (
|
||||
<NotificationBanner intent={Intent.Danger} className={SHORT}>
|
||||
<NotificationBanner intent={Intent.Danger}>
|
||||
<div className="uppercase">
|
||||
{t('The network is being upgraded to {{vegaReleaseTag}}', {
|
||||
vegaReleaseTag,
|
||||
|
@ -4,8 +4,6 @@ import { Intent } from '../../utils/intent';
|
||||
import { Icon, VegaIcon, VegaIconNames } from '../icon';
|
||||
import type { HTMLAttributes } from 'react';
|
||||
|
||||
export const SHORT = '!px-1 !py-1 min-h-fit';
|
||||
|
||||
interface NotificationBannerProps {
|
||||
intent?: Intent;
|
||||
children?: React.ReactNode;
|
||||
@ -23,7 +21,7 @@ export const NotificationBanner = ({
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
'flex items-center border-b px-2',
|
||||
'flex items-center border-b pl-3 pr-2',
|
||||
'text-xs leading-tight font-normal',
|
||||
{
|
||||
'bg-vega-light-100 dark:bg-vega-dark-100 ': intent === Intent.None,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { NotificationBanner, SHORT } from '../notification-banner';
|
||||
import { NotificationBanner } from '../notification-banner';
|
||||
import { Intent } from '../../utils/intent';
|
||||
import { TradingButton } from '../trading-button';
|
||||
import { useT } from '../../use-t';
|
||||
@ -23,7 +23,7 @@ export const ViewingAsBanner = ({
|
||||
}: ViewingAsBannerProps) => {
|
||||
const t = useT();
|
||||
return (
|
||||
<NotificationBanner intent={Intent.None} className={SHORT}>
|
||||
<NotificationBanner>
|
||||
<div className="flex items-baseline justify-between">
|
||||
<span data-testid="view-banner">
|
||||
{t('Viewing as Vega user: {{pubKey}}', {
|
||||
|
Loading…
Reference in New Issue
Block a user