feat: add translation support for polls
This commit is contained in:
parent
cd2c48dd5c
commit
c697e8629d
3 changed files with 83 additions and 19 deletions
|
|
@ -24,9 +24,13 @@ export default function TranslateButton({
|
|||
const translatedEvent = useTranslatedEvent(event.id)
|
||||
const supported = useMemo(
|
||||
() =>
|
||||
[kinds.ShortTextNote, kinds.Highlights, ExtendedKind.COMMENT, ExtendedKind.PICTURE].includes(
|
||||
event.kind
|
||||
),
|
||||
[
|
||||
kinds.ShortTextNote,
|
||||
kinds.Highlights,
|
||||
ExtendedKind.COMMENT,
|
||||
ExtendedKind.PICTURE,
|
||||
ExtendedKind.POLL
|
||||
].includes(event.kind),
|
||||
[event]
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue