mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 07:00:58 -05:00
feat: it's morbing time
This commit is contained in:
parent
ec96dde694
commit
354c22108e
2 changed files with 9 additions and 12 deletions
|
@ -7,13 +7,7 @@ import { ulid } from "ulid";
|
||||||
|
|
||||||
import { Text } from "preact-i18n";
|
import { Text } from "preact-i18n";
|
||||||
import { memo } from "preact/compat";
|
import { memo } from "preact/compat";
|
||||||
import {
|
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
||||||
useCallback,
|
|
||||||
useContext,
|
|
||||||
useEffect,
|
|
||||||
useMemo,
|
|
||||||
useState,
|
|
||||||
} from "preact/hooks";
|
|
||||||
|
|
||||||
import { IconButton, Picker } from "@revoltchat/ui";
|
import { IconButton, Picker } from "@revoltchat/ui";
|
||||||
|
|
||||||
|
@ -659,11 +653,6 @@ export default observer(({ channel }: Props) => {
|
||||||
onFocus={onFocus}
|
onFocus={onFocus}
|
||||||
onBlur={onBlur}
|
onBlur={onBlur}
|
||||||
/>
|
/>
|
||||||
{/*<Action>
|
|
||||||
<IconButton>
|
|
||||||
<Box size={24} />
|
|
||||||
</IconButton>
|
|
||||||
</Action>*/}
|
|
||||||
{state.experiments.isEnabled("picker") && (
|
{state.experiments.isEnabled("picker") && (
|
||||||
<Action>
|
<Action>
|
||||||
<IconButton onClick={() => setPicker(!picker)}>
|
<IconButton onClick={() => setPicker(!picker)}>
|
||||||
|
|
|
@ -16,6 +16,7 @@ enum Badges {
|
||||||
Paw = 128,
|
Paw = 128,
|
||||||
EarlyAdopter = 256,
|
EarlyAdopter = 256,
|
||||||
ReservedRelevantJokeBadge1 = 512,
|
ReservedRelevantJokeBadge1 = 512,
|
||||||
|
ReservedRelevantJokeBadge2 = 1024,
|
||||||
}
|
}
|
||||||
|
|
||||||
const BadgesBase = styled.div`
|
const BadgesBase = styled.div`
|
||||||
|
@ -135,6 +136,13 @@ export default function UserBadges({ badges, uid }: Props) {
|
||||||
) : (
|
) : (
|
||||||
<></>
|
<></>
|
||||||
)}
|
)}
|
||||||
|
{badges & Badges.ReservedRelevantJokeBadge2 ? (
|
||||||
|
<Tooltip content="It's Morbin Time">
|
||||||
|
<img src="/assets/badges/amorbus.svg" />
|
||||||
|
</Tooltip>
|
||||||
|
) : (
|
||||||
|
<></>
|
||||||
|
)}
|
||||||
{badges & Badges.Paw ? (
|
{badges & Badges.Paw ? (
|
||||||
<Tooltip content="🦊">
|
<Tooltip content="🦊">
|
||||||
<img src="/assets/badges/paw.svg" />
|
<img src="/assets/badges/paw.svg" />
|
||||||
|
|
Loading…
Reference in a new issue