Skip to content

Commit

Permalink
Use <> instead of React.Fragment seems to work fine
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadorequest committed Oct 29, 2020
1 parent 860f5c2 commit 6838ed3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/data/AllProducts.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { css } from '@emotion/core';
import filter from 'lodash.filter';
import React from 'react';

Expand All @@ -15,8 +16,12 @@ const AllProducts: React.FunctionComponent<Props> = (props) => {
const productsDraft: AirtableRecord<Product>[] = filter(products, { fields: { status: 'DRAFT' } });

return (
<React.Fragment>
<h2>Published products</h2>
<>
<h2
css={css`
background-color: black;
`}
>Published products</h2>

<Products
products={productsPublished}
Expand All @@ -29,7 +34,7 @@ const AllProducts: React.FunctionComponent<Props> = (props) => {
<Products
products={productsDraft}
/>
</React.Fragment>
</>
);
};

Expand Down

1 comment on commit 6838ed3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.