From 002996de958a81d80f4543677ec1350e8ef14728 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 27 Jun 2019 09:32:52 +0200 Subject: [PATCH] docs(typescript): refactor typescript template (#319) --- website/src/pages/docs/typescript.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/pages/docs/typescript.mdx b/website/src/pages/docs/typescript.mdx index c8ba4e93..3e3f4b0d 100644 --- a/website/src/pages/docs/typescript.mdx +++ b/website/src/pages/docs/typescript.mdx @@ -46,8 +46,8 @@ module.exports = { ) { const typeScriptTpl = template.smart({ plugins: ['typescript'] }) return typeScriptTpl.ast` - import * as React from 'react'; - const ${componentName} = (props: React.SVGProps) => ${jsx}; + import React, { SVGProps } from 'react'; + const ${componentName} = (props: SVGProps) => ${jsx}; export default ${componentName}; ` },