mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-18 06:24:25 +01:00
fix: eslint errors
This commit is contained in:
@@ -6,7 +6,6 @@ import ColumnItem from '@/components/ColumnItem';
|
||||
import Reaction from '@/components/event/Reaction';
|
||||
import Repost from '@/components/event/Repost';
|
||||
import TextNote from '@/components/event/TextNote';
|
||||
import ZapReceipt from '@/components/event/ZapReceipt';
|
||||
import useConfig from '@/core/useConfig';
|
||||
|
||||
export type NotificationProps = {
|
||||
@@ -21,29 +20,22 @@ const Notification: Component<NotificationProps> = (props) => {
|
||||
{(event) => (
|
||||
<Show when={!shouldMuteEvent(event)}>
|
||||
<Switch fallback={<div>unknown event</div>}>
|
||||
<Match when={event.kind === Kind.Text}>
|
||||
<Match when={event.kind === (Kind.Text as number)}>
|
||||
<ColumnItem>
|
||||
<TextNote event={event} />
|
||||
</ColumnItem>
|
||||
</Match>
|
||||
<Match when={event.kind === Kind.Reaction}>
|
||||
<Match when={event.kind === (Kind.Reaction as number)}>
|
||||
<ColumnItem>
|
||||
<Reaction event={event} />
|
||||
</ColumnItem>
|
||||
</Match>
|
||||
{/* TODO ちゃんとnotification用のコンポーネント使う */}
|
||||
<Match when={(event.kind as number) === 6}>
|
||||
<Match when={event.kind === (Kind.Repost as number)}>
|
||||
<ColumnItem>
|
||||
<Repost event={event} />
|
||||
</ColumnItem>
|
||||
</Match>
|
||||
{/*
|
||||
<Match when={event.kind === Kind.Zap}>
|
||||
<ColumnItem>
|
||||
<ZapReceipt event={event} />
|
||||
</ColumnItem>
|
||||
</Match>
|
||||
*/}
|
||||
</Switch>
|
||||
</Show>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user