Skip to content

Commit 0370ce9

Browse files
committed
Refaktorering
1 parent b3f5126 commit 0370ce9

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

pages/kategorier.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ import { FETCH_ALL_CATEGORIES_QUERY } from 'utils/gql/GQL_QUERIES';
88
/**
99
* Category page displays all of the categories
1010
*/
11-
const CategoryPage = ({ categories }) => {
12-
return (
13-
<>
14-
<PageTemplate title="Kategorier" input={categories}>
15-
{categories && <Categories categories={categories} />}
16-
</PageTemplate>
17-
</>
18-
);
19-
};
11+
const CategoryPage = ({ categories }) => (
12+
<PageTemplate title="Kategorier" input={categories}>
13+
{categories && <Categories categories={categories} />}
14+
</PageTemplate>
15+
);
2016

2117
export default CategoryPage;
2218

0 commit comments

Comments
 (0)