Skip to content

Commit

Permalink
Merge pull request #932 from ForceManager/feature/new-icons
Browse files Browse the repository at this point in the history
add emptyFile and fullFile icons
  • Loading branch information
jorgandia authored Nov 24, 2023
2 parents 3934a8d + dfba9d1 commit ac33682
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/general/Icon/Icon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ import Strikethrough from './icons/editor/Strikethrough';
import OrderedList from './icons/editor/OrderedList';
import UnorderedList from './icons/editor/UnorderedList';
import Mention from './icons/editor/Mention';
import EmptyFile from './icons/editor/EmptyFile';
import FullFile from './icons/editor/FullFile';

// Raw icons
import LockRaw from './rawIcons/Lock';
Expand Down Expand Up @@ -864,6 +866,8 @@ export const ICONS = {
orderedList: OrderedList,
unorderedList: UnorderedList,
mention: Mention,
emptyFile: EmptyFile,
fullFile: FullFile,
//Raw
lockRaw: LockRaw,
closeRaw: CloseRaw,
Expand Down
2 changes: 2 additions & 0 deletions src/components/general/Icon/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,8 @@ import Icon from './IconWithTooltip';
<Icon name="orderedList" />
<Icon name="unorderedList" />
<Icon name="mention" />
<Icon name="emptyFile" />
<Icon name="fullFile" />
</div>;
```

Expand Down
13 changes: 13 additions & 0 deletions src/components/general/Icon/icons/editor/EmptyFile.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import { colors } from '../../../../../utils/styles/defaultTheme';

const Bold = ({ color = colors.neutral700, ...props }) => (
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" {...props}>
<path
fill={color}
d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6ZM6 20V4h7v5h5v11H6Z"
/>
</svg>
);

export default React.memo(Bold);
15 changes: 15 additions & 0 deletions src/components/general/Icon/icons/editor/FullFile.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';
import { colors } from '../../../../../utils/styles/defaultTheme';

const Bold = ({ color = colors.neutral700, ...props }) => (
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" {...props}>
<path
fill={color}
fillRule="evenodd"
d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6Zm7 7V3.5L18.5 9H13Z"
clipRule="evenodd"
/>
</svg>
);

export default React.memo(Bold);

0 comments on commit ac33682

Please sign in to comment.