Skip to content

Commit

Permalink
fix: indent shadownode
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jan 15, 2025
1 parent e9e1c2f commit 025c3f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/nitrogen/src/views/ViewComponentShadowNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function createViewComponentShadowNodeFiles(
)

// .hpp code
const shadowIndent = createIndentation(shadowNodeClassName.length)
const componentHeaderCode = `
${createFileMetadataString(`${component}.hpp`)}
Expand Down Expand Up @@ -116,7 +117,10 @@ namespace ${namespace} {
/**
* The Shadow Node for the "${spec.name}" View.
*/
using ${shadowNodeClassName} = react::ConcreteViewShadowNode<${nameVariable}, ${propsClassName}, react::ViewEventEmitter, ${stateClassName}>;
using ${shadowNodeClassName} = react::ConcreteViewShadowNode<${nameVariable},
${shadowIndent} react::ViewEventEmitter,
${shadowIndent} ${stateClassName}>;
${shadowIndent} ${propsClassName},
/**
* The Component Descriptor for the "${spec.name}" View.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ namespace margelo::nitro::image::views {
/**
* The Shadow Node for the "TestView" View.
*/
using HybridTestViewShadowNode = react::ConcreteViewShadowNode<HybridTestViewComponentName, HybridTestViewProps, react::ViewEventEmitter, HybridTestViewState>;
using HybridTestViewShadowNode = react::ConcreteViewShadowNode<HybridTestViewComponentName,
react::ViewEventEmitter,
HybridTestViewState>;
HybridTestViewProps,

/**
* The Component Descriptor for the "TestView" View.
Expand Down

0 comments on commit 025c3f6

Please sign in to comment.