Skip to content

Commit

Permalink
Migrating React-FontAwesome: make changes components/pages/entites/im…
Browse files Browse the repository at this point in the history
…age.js
  • Loading branch information
prabalsingh24 committed Jan 26, 2020
1 parent 4a2b0ea commit 38ef249
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/client/components/pages/entities/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import * as bootstrap from 'react-bootstrap';

import Icon from 'react-fontawesome';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import PropTypes from 'prop-types';
import React from 'react';

Expand All @@ -38,24 +38,24 @@ function EntityImage({backupIcon, deleted, imageUrl}) {
let icons;
if (deleted) {
icons = [
<Icon
<FontAwesomeIcon
icon={backupIcon}
key="entityIcon"
name={backupIcon}
size="5x"
stack="1x"
/>,
<Icon
<FontAwesomeIcon
icon="slash"
key="deletedIcon"
name="slash"
size="5x"
stack="1x"
/>
];
}
else {
icons = (
<Icon
name={backupIcon}
<FontAwesomeIcon
icon={backupIcon}
size="5x"
/>
);
Expand Down

0 comments on commit 38ef249

Please sign in to comment.