mirror of
https://github.com/streamich/react-use.git
synced 2026-02-01 14:37:31 +00:00
Also reduce max line width to 100. And remove `lint:types` step for commit sequence, it bothers when committing incomplete (wip) changes.
15 lines
307 B
TypeScript
15 lines
307 B
TypeScript
import * as React from 'react';
|
|
|
|
export const CenterStory = ({ children }) => (
|
|
<div
|
|
style={{
|
|
display: 'flex',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
maxWidth: '400px',
|
|
margin: '40px auto',
|
|
}}>
|
|
<div style={{ width: '100%' }}>{children}</div>
|
|
</div>
|
|
);
|