setExpanded(!expanded)}>
setExpanded(!expanded)}
- className="flex items-center cursor-pointer select-none"
+ className="flex items-center select-none w-fit ml-auto"
>
{expanded ? 'Close' : 'Edit'}
diff --git a/frontend/app/components/ui/Icon/Icon.js b/frontend/app/components/ui/Icon/Icon.tsx
similarity index 76%
rename from frontend/app/components/ui/Icon/Icon.js
rename to frontend/app/components/ui/Icon/Icon.tsx
index 0ed03acaa..745d6412d 100644
--- a/frontend/app/components/ui/Icon/Icon.js
+++ b/frontend/app/components/ui/Icon/Icon.tsx
@@ -3,7 +3,19 @@ import cn from 'classnames';
import SVG from 'UI/SVG';
import styles from './icon.module.css';
-const Icon = ({
+interface IProps {
+ name: string
+ size?: number | string
+ height?: number
+ width?: number
+ color?: string
+ className?: string
+ style?: object
+ marginRight?: number
+ inline?: boolean
+}
+
+const Icon: React.FunctionComponent = ({
name,
size = 12,
height = size,
@@ -21,6 +33,7 @@ const Icon = ({
...style,
};
if (marginRight){
+ // @ts-ignore
_style.marginRight = `${ marginRight }px`;
}
diff --git a/frontend/app/components/ui/SVG.tsx b/frontend/app/components/ui/SVG.tsx
index b489a90c6..8f7bab660 100644
--- a/frontend/app/components/ui/SVG.tsx
+++ b/frontend/app/components/ui/SVG.tsx
@@ -3,9 +3,9 @@ import React from 'react';
interface Props {
name: string;
- size?: number;
- width?: number;
- height?: number;
+ size?: number | string;
+ width?: number | string;
+ height?: number | string;
fill?: string;
}