From 81cdb5b2e1bbc883bda21bae3df526881ef09f4b Mon Sep 17 00:00:00 2001 From: ray Date: Sat, 22 Jan 2022 12:25:06 +0000 Subject: [PATCH] update --- UltiSnips/javascript.snippets | 17 +++++++++++++++++ spell/en.utf-8.add | 2 ++ spell/en.utf-8.add.spl | Bin 2609 -> 2635 bytes 3 files changed, 19 insertions(+) diff --git a/UltiSnips/javascript.snippets b/UltiSnips/javascript.snippets index 8b71d1e..a4afe51 100644 --- a/UltiSnips/javascript.snippets +++ b/UltiSnips/javascript.snippets @@ -168,3 +168,20 @@ registerBlockType( '${1:namespace}/${2:block-name}', { }, } ); endsnippet + +snippet rtw "React + twin.macro" +import * as React from "react" +import 'twin.macro' + +const `!p snip.rv = snip.basename` = ({ children }) => { + return ( + <$1 tw="$0"> + {children} + + ) +} + +export default `!p snip.rv = snip.basename` + +endsnippet + diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index 0f89989..d3063d6 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -198,3 +198,5 @@ dropdown dropshipping LightInTheBox Etsy +Strapi +whitepapers diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index a8a4d86049f9652169cfcb76f4c6b3a4cb02a6c6..1d2b01365e85d3ef3921f4ac184ae01cee06a78d 100644 GIT binary patch delta 80 zcmdlea$1Bh%+t5HAT=k)=syDk>${D7C)ik667!2D-(-_vPh@0dV5lyb{Dtia3tM7p j#^l@VX8f6qC5)+z1&km`R`G(#0vx`KeVgMrE;9lE7d;pm delta 54 zcmV-60LlN$6tNTzR!L2BaAj<4GXDSo1>CU?$OZ!gVQ-V#1{{&80T?$EVgLXD