From ba1e44a7c475821d998795c9ed72bc91c9f8a78a Mon Sep 17 00:00:00 2001 From: ayan Date: Sat, 20 Jan 2024 17:32:20 +0530 Subject: [PATCH] fix: add fix to handle all breakpoints --- src/converter/converter.ts | 62 +++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/src/converter/converter.ts b/src/converter/converter.ts index fef4ed4..3b9ca54 100644 --- a/src/converter/converter.ts +++ b/src/converter/converter.ts @@ -82,46 +82,46 @@ export function convertFile($: CheerioAPI): void { fxShow = value; fxShowBreakpoint = breakpoint; } - }); - if (fxLayoutAlign !== undefined) { - convertFxLayoutAlignToTailwind($element, fxLayoutAlign, fxLayoutAlignBreakpoint); - } + if (fxLayoutAlign !== undefined) { + convertFxLayoutAlignToTailwind($element, fxLayoutAlign, fxLayoutAlignBreakpoint); + } - if (fxLayout !== undefined) { - convertFxLayoutToTailwind($element, fxLayout, fxLayoutBreakpoint); - } + if (fxLayout !== undefined) { + convertFxLayoutToTailwind($element, fxLayout, fxLayoutBreakpoint); + } - if (fxLayoutGap !== undefined) { - convertFxLayoutGapToTailwind($element, fxLayout ?? '', fxLayoutGap, fxLayoutGapBreakpoint); - } + if (fxLayoutGap !== undefined) { + convertFxLayoutGapToTailwind($element, fxLayout ?? '', fxLayoutGap, fxLayoutGapBreakpoint); + } - if (fxFlex !== undefined) { - convertFxFlexToTailwind($element, fxFlex, fxGrow ?? '', fxShrink ?? '', fxFlexBreakpoint); - } + if (fxFlex !== undefined) { + convertFxFlexToTailwind($element, fxFlex, fxGrow ?? '', fxShrink ?? '', fxFlexBreakpoint); + } - if (fxFill !== undefined || fxFlexFill !== undefined) { - convertFxFlexFillToTailwind($element); - } + if (fxFill !== undefined || fxFlexFill !== undefined) { + convertFxFlexFillToTailwind($element); + } - if (fxFlexOrder !== undefined) { - convertFxFlexOrderToTailwind($element, fxFlexOrder ?? '', fxFlexOrderBreakpoint); - } + if (fxFlexOrder !== undefined) { + convertFxFlexOrderToTailwind($element, fxFlexOrder ?? '', fxFlexOrderBreakpoint); + } - if (fxFlexAlign !== undefined) { - convertFxFlexAlignToTailwind($element, fxFlexAlign ?? '', fxFlexAlignBreakpoint); - } + if (fxFlexAlign !== undefined) { + convertFxFlexAlignToTailwind($element, fxFlexAlign ?? '', fxFlexAlignBreakpoint); + } - if (fxFlexOffset !== undefined) { - convertFxFlexOffsetToTailwind($element, fxFlexOffset ?? '', fxFlexOffsetBreakpoint); - } + if (fxFlexOffset !== undefined) { + convertFxFlexOffsetToTailwind($element, fxFlexOffset ?? '', fxFlexOffsetBreakpoint); + } - if (fxHide !== undefined) { - convertFxHideToTailwind($element, fxHide, fxHideBreakpoint); - } + if (fxHide !== undefined) { + convertFxHideToTailwind($element, fxHide, fxHideBreakpoint); + } - if (fxShow !== undefined) { - convertFxShowToTailwind($element, fxShow, fxShowBreakpoint); - } + if (fxShow !== undefined) { + convertFxShowToTailwind($element, fxShow, fxShowBreakpoint); + } + }); }); }