1
1
mirror of https://github.com/primer/css.git synced 2024-11-30 19:53:11 +03:00
prettier/prettier
This commit is contained in:
simurai 2019-03-11 21:32:43 +09:00
parent 037eb58801
commit ac7988c78b

View File

@ -39,7 +39,11 @@ export default class Frame extends React.Component {
getBody(children) {
return (
<Measure bounds onResize={rect => this.setHeight(rect.bounds.height)}>
{({measureRef}) => <div ref={measureRef} style={{overflow: 'auto'}}>{children}</div>}
{({measureRef}) => (
<div ref={measureRef} style={{overflow: 'auto'}}>
{children}
</div>
)}
</Measure>
)
}