Skip to content

Commit

Permalink
refactor: change note prompt & dev runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
renejfc committed Mar 25, 2024
1 parent bcdcf7d commit c206b1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/prompts/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function Note({ message = "", title = "" }: { message?: string; title?: s
.join("\n")

process.stdout.write(
`${c.gray(S.BAR)}\n${c.green(S.STEP_SUBMIT)} ${c.reset(title)} ${c.gray(
`${c.gray(S.BAR)}\n${c.blue(S.INFO)} ${c.reset(title)} ${c.gray(
S.BAR_H.repeat(Math.max(len - titleLen - 1, 1)) + S.CORNER_TOP_RIGHT
)}\n${msg}\n${c.gray(S.CONNECT_LEFT + S.BAR_H.repeat(len + 2) + S.CORNER_BOTTOM_RIGHT)}\n`
)
Expand Down
2 changes: 0 additions & 2 deletions src/lib/prompts/runtime/jsx-dev-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ import type { JSXSignature } from "./types"

export function jsxDEV(component: JSXSignature["component"], props: JSXSignature["props"]): any {
props.children = childrenToArr(props.children)

console.log("\n", "Parsing JSX props:", props, "\n")
return component(props)
}

0 comments on commit c206b1c

Please sign in to comment.