insomnia/packages/insomnia/svgr.config.js
James Gatz 09cf77c4ef
Move insomnia-components in the insomnia package (#5259)
* Move insomnia-components in the insomnia package

* remove extra tooltip components

* remove button from portal plugin

* remove insomniaComponent injection

* move spec editor sidebar

* move breadcrumb component

* move toggle-switch

* move table/notice-table

* remove unused switch component

* move header to app-header

* move card

* move card-container to wrapper-home

* Remove unused multi-switch and radio-group

* move svg icon and auto-run convert-svg command

* move list-group

* move button components into themed-button

* move dropdown

* remove auto-conversion of svg from npm scripts

* track svg icon components to git

* remove react-switch and framer-motion

* remove sidebar panel, fix lint

* remove animate blocks

* fix types, remove value from dropdown item

* remove button

* ignore svgr config

* update dropdown unit tests

* allow unreachable

* oauth e2e test: update locator to make the Create button specific

* fix type errors

Co-authored-by: jackkav <jackkav@gmail.com>
2022-10-12 22:26:11 +02:00

23 lines
484 B
JavaScript

module.exports = {
template: (variables, { tpl }) => tpl`
import React, { SVGProps, memo } from 'react';
export const ${variables.componentName} = memo<SVGProps<SVGSVGElement>>(props => (
${variables.jsx}
));
`,
icon: true,
replaceAttrValues: {
'#000': '',
'#FFF': 'currentColor',
},
ext: 'tsx',
prettier: true,
prettierConfig: {
arrowParens: 'avoid',
singleQuote: true,
parser: 'typescript',
},
typescript: true,
};