mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-21 22:50:59 -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 { memo } from "preact/compat";
|
||||
import {
|
||||
useCallback,
|
||||
useContext,
|
||||
useEffect,
|
||||
useMemo,
|
||||
useState,
|
||||
} from "preact/hooks";
|
||||
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
||||
|
||||
import { IconButton, Picker } from "@revoltchat/ui";
|
||||
|
||||
|
@ -659,11 +653,6 @@ export default observer(({ channel }: Props) => {
|
|||
onFocus={onFocus}
|
||||
onBlur={onBlur}
|
||||
/>
|
||||
{/*<Action>
|
||||
<IconButton>
|
||||
<Box size={24} />
|
||||
</IconButton>
|
||||
</Action>*/}
|
||||
{state.experiments.isEnabled("picker") && (
|
||||
<Action>
|
||||
<IconButton onClick={() => setPicker(!picker)}>
|
||||
|
|
|
@ -16,6 +16,7 @@ enum Badges {
|
|||
Paw = 128,
|
||||
EarlyAdopter = 256,
|
||||
ReservedRelevantJokeBadge1 = 512,
|
||||
ReservedRelevantJokeBadge2 = 1024,
|
||||
}
|
||||
|
||||
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 ? (
|
||||
<Tooltip content="🦊">
|
||||
<img src="/assets/badges/paw.svg" />
|
||||
|
|
Loading…
Reference in a new issue