Fixed icons
This commit is contained in:
parent
53634b997e
commit
fd15d04231
|
@ -177,8 +177,7 @@ export const Header = (props: Props) => {
|
||||||
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose, 'loginbtn')}>
|
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose, 'loginbtn')}>
|
||||||
<a href="?modal=auth&mode=login" onClick={handleClientRouteLinkClick}>
|
<a href="?modal=auth&mode=login" onClick={handleClientRouteLinkClick}>
|
||||||
<span class={styles.textLabel}>{t('Enter')}</span>
|
<span class={styles.textLabel}>{t('Enter')}</span>
|
||||||
{/* TODO: заменить иконку */}
|
<Icon name="user-anonymous" class={styles.icon} />
|
||||||
<Icon name="inbox-white" class={styles.icon} counter={session()?.news?.unread || 0} />
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ export const Icon = (passedProps: IconProps) => {
|
||||||
const props = mergeProps({ title: '', counter: 0 }, passedProps)
|
const props = mergeProps({ title: '', counter: 0 }, passedProps)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={clsx(styles.icon, props.class)} style={props.style}>
|
<div class={clsx('icon', styles.icon, props.class)} style={props.style}>
|
||||||
<img src={`/icons/${props.name}.svg`} alt={props.title ?? props.name} class={props.iconClassName} />
|
<img src={`/icons/${props.name}.svg`} alt={props.title ?? props.name} class={props.iconClassName} />
|
||||||
<Show when={props.counter}>
|
<Show when={props.counter}>
|
||||||
<div class={styles.notificationsCounter}>{props.counter}</div>
|
<div class={styles.notificationsCounter}>{props.counter}</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user