1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Switch to shared hooks

This commit is contained in:
Zhiyuan Zheng
2021-01-11 21:36:57 +01:00
parent fdce172c57
commit 284d6e46e0
47 changed files with 1053 additions and 727 deletions

View File

@ -7,6 +7,7 @@ import HeaderSharedApplication from './HeaderShared/Application'
import HeaderSharedCreated from './HeaderShared/Created'
import HeaderSharedVisibility from './HeaderShared/Visibility'
import RelationshipIncoming from '@root/components/Relationship/Incoming'
import HeaderSharedMuted from './HeaderShared/Muted'
export interface Props {
notification: Mastodon.Notification
@ -30,6 +31,7 @@ const TimelineHeaderNotification: React.FC<Props> = ({ notification }) => {
<HeaderSharedVisibility
visibility={notification.status?.visibility}
/>
<HeaderSharedMuted muted={notification.status?.muted} />
<HeaderSharedApplication
application={notification.status?.application}
/>