Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Adding empty user icon #320

Merged
merged 1 commit into from
Jun 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/components/Icon/icons/UserEmpty.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';
import PropTypes from 'prop-types';
import iconColorsMap from './colors';

const UserEmpty = ({ fill, ...props }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill={fill}
{...props}
>
<path d="M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" />
</svg>
);
UserEmpty.propTypes = { fill: PropTypes.string };
UserEmpty.defaultProps = { fill: iconColorsMap.mainicon };

export default UserEmpty;
2 changes: 2 additions & 0 deletions src/components/Icon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ import Tv from './icons/Tv';
import Upload from './icons/Upload';
import UserRelationship from './icons/UserRelationship';
import User from './icons/User';
import UserEmpty from './icons/UserEmpty';
import ViewGrid from './icons/ViewGrid';
import ViewStream from './icons/ViewStream';
import ViewTable from './icons/ViewTable';
Expand Down Expand Up @@ -332,6 +333,7 @@ export const iconsMap = {
upload: Upload,
'user-relationship': UserRelationship,
user: User,
'user-empty': UserEmpty,
'view-grid': ViewGrid,
'view-stream': ViewStream,
'view-table': ViewTable,
Expand Down