Skip to content

Commit fa3c2ca

Browse files
authored
Merge pull request #4724 from easyops-cn/steve/v3-yo
fix(): refine brick template
2 parents 476cb2d + 7790492 commit fa3c2ca

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/yo/src/templates/brick/i18n.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { i18n } from "@next-core/i18n";
22

3-
export enum K {}
4-
// HELLO = "HELLO",
3+
export enum K {
4+
// HELLO = "HELLO",
5+
}
56

67
const en: Locale = {
78
// HELLO: "Hello",

packages/yo/src/templates/brick/index.tsx.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ class {{>className}} extends ReactNextElement implements {{>className}}Props {
3333
}
3434
}
3535

36-
export interface {{>className}}ComponentProps extends {{>className}}Props {
36+
interface {{>className}}ComponentProps extends {{>className}}Props {
3737
// Define react event handlers here.
3838
}
3939

40-
export function {{>className}}Component(props: {{>className}}ComponentProps) {
40+
function {{>className}}Component(props: {{>className}}ComponentProps) {
4141
{{#if useI18n}}
4242
const hello = t(K.HELLO);
4343
return <div>{hello} world!</div>;

0 commit comments

Comments
 (0)