-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(xbridge-test): xbridge-test 이미지 로직 변경 (#22)
* feat(xbridge-test): xbridge test service 추가 * feat(xbridge): docker file 변경 * feat(xbridge-test): xbridge test image 로직 변경
- Loading branch information
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
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,16 @@ | ||
import { ButtonProps } from '@semicolondsm/ui/dist/components/Button/types'; | ||
import { sendBridgeEvent } from '@shared/xbridge'; | ||
import React, { FC, HTMLProps, ReactPropTypes } from 'react'; | ||
|
||
interface Props { | ||
src: string; | ||
} | ||
const XbridgeImage = ({ src }: Props) => { | ||
return ( | ||
<img | ||
src={src} | ||
onClick={() => sendBridgeEvent('image-detail', [src], () => console.log(src))}></img> | ||
); | ||
}; | ||
|
||
export default XbridgeImage; |
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