From 93b677336178d07486905f2e23ec0cb31d55bf5a Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Wed, 13 Mar 2024 19:00:21 +0530 Subject: [PATCH] add Icon component and remove btn --- src/components/Assets.jsx | 25 +++++-------------------- src/components/Icons.jsx | 22 ++++++++++++++++++++-- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/src/components/Assets.jsx b/src/components/Assets.jsx index a0a76a9..47157c1 100644 --- a/src/components/Assets.jsx +++ b/src/components/Assets.jsx @@ -7,6 +7,7 @@ import { Trans } from '@lingui/macro'; import { ProBadge } from './ProBadge'; import { LoaderWithText } from './Loader'; import { Text } from './Text'; +import { Icon } from './Icons'; const Assets = () => { const [files, setFiles] = useState([]); @@ -227,10 +228,7 @@ const Assets = () => { onClick={() => setListType('list')} aria-label="List view" > - - view-list - - + ) : null} @@ -269,12 +265,7 @@ const Assets = () => { onClick={() => copyFileUrl(file.url)} aria-label="Copy URL" > - - - + diff --git a/src/components/Icons.jsx b/src/components/Icons.jsx index db9b23b..adf4ad6 100644 --- a/src/components/Icons.jsx +++ b/src/components/Icons.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; - export function Icons() { return ( + + + + + + + + + + + + {/* By Sam Herbert (@sherb), for everyone. More http://goo.gl/7AJzbL */} @@ -162,3 +172,11 @@ export function Icons() { ); } + +export const Icon = ({ name, ...rest }) => { + return ( + + + + ); +};