1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed features at editor

This commit is contained in:
muerwre 2019-08-01 19:11:01 +07:00
parent 85ee879c2f
commit 393813ce4e
9 changed files with 204 additions and 163 deletions

View file

@ -1,23 +1,19 @@
import React, { FC } from 'react';
import { IIcon } from '~/redux/types';
import React, { FC } from "react";
import { IIcon } from "~/redux/types";
type IProps = React.SVGAttributes<SVGElement> & {
size?: number;
icon: IIcon;
};
export const Icon: FC<IProps> = ({
size = 20,
icon,
...props
}) => (
export const Icon: FC<IProps> = ({ size = 20, icon, style, ...props }) => (
<svg
width={size}
height={size}
viewBox={`0 0 24 24`}
preserveAspectRatio="xMidYMid slice"
style={{ ...style, outline: "none" }}
{...props}
style={{ ...props.style, outline: 'none' }}
>
<use xlinkHref={`#${icon}`} />
</svg>