Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save meddokss/d813d2253f74b61e8c012eb4caeb77f9 to your computer and use it in GitHub Desktop.
Save meddokss/d813d2253f74b61e8c012eb4caeb77f9 to your computer and use it in GitHub Desktop.
const SInfiniteScroller = styled(({ isInitFetching, ...rest }) => (
<InfiniteScroller {...rest} />
))(({ isInitFetching }) =>
isInitFetching
? css`
height: 100%;
display: grid;
grid-template-rows: 1fr;
padding: 45px 0 120px;
`
: css`
height: 100%;
display: grid;
grid-template-rows: 1fr;
min-height: 185px;
align-items: flex-start;
`,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment