Replaced React.Fragment shorthands with elements

This commit is contained in:
ireic
2020-01-23 20:16:18 +01:00
parent fffb0fed4f
commit 5566618c47
17 changed files with 55 additions and 54 deletions

View File

@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import React, { Fragment, useState } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { get } from 'lodash';
@@ -60,17 +60,17 @@ const ProjectIssueSearch = ({ project }) => {
</SearchInputCont>
{isSearchTermEmpty && recentIssues.length > 0 && (
<>
<Fragment>
<SectionTitle>Recent Issues</SectionTitle>
{recentIssues.map(renderIssue)}
</>
</Fragment>
)}
{!isSearchTermEmpty && matchingIssues.length > 0 && (
<>
<Fragment>
<SectionTitle>Matching Issues</SectionTitle>
{matchingIssues.map(renderIssue)}
</>
</Fragment>
)}
{!isSearchTermEmpty && !isLoading && matchingIssues.length === 0 && (