update new folder icon (#177)

This commit is contained in:
Tindo N. Arsel 2023-04-01 04:28:29 +01:00 committed by GitHub
parent c33498d7fc
commit 7cb8aa0b4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,23 @@
import React from 'react';
const NewFolderIcon = ({ className }: { className?: string }) => {
return (
<svg
stroke='currentColor'
fill='none'
strokeWidth='2'
viewBox='0 0 24 24'
strokeLinecap='round'
strokeLinejoin='round'
className={className ? className : 'h-4 w-4'}
height='1em'
width='1em'
xmlns='http://www.w3.org/2000/svg'
>
<path d="M12 19H5C3.89543 19 3 18.1046 3 17V7C3 5.89543 3.89543 5 5 5H9.58579C9.851 5 10.1054 5.10536 10.2929 5.29289L12 7H19C20.1046 7 21 7.89543 21 9V11" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M18 14V17M18 20V17M18 17H15M18 17H21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
);
};
export default NewFolderIcon;

View file

@ -2,7 +2,7 @@ import React from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import useStore from '@store/store'; import useStore from '@store/store';
import PlusIcon from '@icon/PlusIcon'; import NewFolderIcon from '@icon/NewFolderIcon';
const NewFolder = () => { const NewFolder = () => {
const { t } = useTranslation(); const { t } = useTranslation();
@ -38,7 +38,7 @@ const NewFolder = () => {
if (!generating) addFolder(); if (!generating) addFolder();
}} }}
> >
<PlusIcon />{' '} <NewFolderIcon />{' '}
<span className='hidden md:inline-flex text-white text-sm'> <span className='hidden md:inline-flex text-white text-sm'>
{t('newFolder')} {t('newFolder')}
</span> </span>