Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 1x 1x 1x 1x 2x 2x 1x | import React, { Fragment } from "react"; import ReactGiphySearchbox from "react-giphy-searchbox"; import "./style.css"; type GifType = { apiKey: string; select: (e: any) => void; }; const GifSection: React.FC<GifType> = (props) => { const { apiKey, select } = props; return ( <div style={{ margin: "20px 0px" }} data-testid="gif-section"> <ReactGiphySearchbox data-testid="search-box" wrapperClassName="gifForm" searchFormClassName={{ padding: "20px 0px" }} apiKey={apiKey} onSelect={(e) => select(e)} masonryConfig={[ { columns: 4, imageWidth: 110, gutter: 5 }, { mq: "1000px", columns: 4, imageWidth: 120, gutter: 5 }, ]} /> </div> ); }; export default GifSection; |