Skip to content

Commit

Permalink
fix TypeScript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca committed Sep 18, 2024
1 parent 7e8b155 commit 492c0d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/frontend/src/components/Gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export default class Gallery extends Component<
galleryImageKeepAspectRatio?: boolean
}
> {
declare context: React.ContextType<typeof DialogContext>

dateHeader = createRef<HTMLDivElement>()
constructor(props: Props) {
super(props)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export default class ComposerMessageInput extends React.Component<
ComposerMessageInputProps,
ComposerMessageInputState
> {
declare context: React.ContextType<typeof DialogContext>

composerSize: number
setCursorPosition: number | false
textareaRef: React.RefObject<HTMLTextAreaElement>
Expand Down

0 comments on commit 492c0d4

Please sign in to comment.