-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
68 additions
and
37 deletions.
There are no files selected for viewing
Submodule uikit
updated
2 files
+1 −1 | src/modules/GroupChannel/components/FileViewer/FileViewerView.tsx | |
+0 −1 | src/ui/MessageInput/index.scss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { FileMessage } from '@sendbird/chat/message'; | ||
|
||
import { FileViewerView } from '@uikit/modules/GroupChannel/components/FileViewer/FileViewerView'; | ||
|
||
import { useChatContext } from '../chat/context/ChatProvider'; | ||
|
||
interface Props { | ||
message: FileMessage; | ||
onClose: () => void; | ||
} | ||
// TODO: Remove UIKit | ||
export const FileViewer = ({ message, onClose }: Props) => { | ||
const { dataSource } = useChatContext(); | ||
return ( | ||
<FileViewerView | ||
message={message} | ||
deleteMessage={(message: any) => dataSource.deleteMessage(message)} | ||
onCancel={onClose} | ||
/> | ||
); | ||
}; |