-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image preview dialog #199
Image preview dialog #199
Conversation
onAfterLeave: () => void; | ||
}; | ||
|
||
const ImagePreview: React.FC<ImagePreviewProps> = (props) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ModalDialog
とほぼ同じなので、統一できないでしょうか?
title
とonAfterLeave
の部分を改造すれば、共通化できそうな気がします
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
統一しました!
@@ -107,6 +115,13 @@ const ChatMessage: React.FC<Props> = (props) => { | |||
); | |||
} | |||
})} | |||
<ImagePreview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
拡大できるようにしました。全く同じスタイルをあてています
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
Issue #, if available:
Description of changes:
Preview image dialog on message
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.