From c14673cc75c98c804209996631b859b5fca90f87 Mon Sep 17 00:00:00 2001 From: owjs3901 Date: Fri, 20 Mar 2026 23:28:13 +0900 Subject: [PATCH] Set Component Name in Pages --- src/commands/exportPagesAndComponents.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/exportPagesAndComponents.ts b/src/commands/exportPagesAndComponents.ts index 8d4b864..08b599e 100644 --- a/src/commands/exportPagesAndComponents.ts +++ b/src/commands/exportPagesAndComponents.ts @@ -346,12 +346,12 @@ export async function exportPagesAndComponents() { const responsiveCode = await responsiveCodegen.generateResponsiveCode() const baseName = toPascal(sectionNode.name) const pageName = isParentSection ? `${baseName}Page` : baseName - const wrappedCode = wrapComponent(pageName, responsiveCode, { - exportDefault: isParentSection, + const wrappedCode = wrapComponent('Page', responsiveCode, { + exportDefault: true, }) const pageCodeEntry: ReadonlyArray = [ - [pageName, wrappedCode], + ['Page', wrappedCode], ] const importStatement = generateImportStatements(pageCodeEntry) const fullCode = importStatement + wrappedCode