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

eslint fix

This commit is contained in:
muerwre 2019-08-09 12:23:07 +07:00
parent dfaac877fb
commit fa4d51360b
81 changed files with 741 additions and 972 deletions

View file

@ -1,18 +1,20 @@
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, style, ...props }) => (
export const Icon: FC<IProps> = ({
size = 20, icon, style, ...props
}) => (
<svg
width={size}
height={size}
viewBox={`0 0 24 24`}
viewBox="0 0 24 24"
preserveAspectRatio="xMidYMid slice"
style={{ ...style, outline: "none" }}
style={{ ...style, outline: 'none' }}
{...props}
>
<use xlinkHref={`#${icon}`} />