Skip to content

Commit 40bee01

Browse files
committed
fix(page3): fix Welcome keyname props issue.
1 parent accd043 commit 40bee01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/page3/src/control/Welcome.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { PropsWithChildren } from 'react';
22
import { Block, BlockProps, BlockTagType } from 'react-login-page';
33

44
export const Welcome = <T extends BlockTagType>(props: PropsWithChildren<Partial<BlockProps<T>>>) => {
5-
const { keyname, name = 'title', tagName = 'section', ...elmProps } = props;
5+
const { keyname = 'welcome', tagName = 'section', ...elmProps } = props;
66
if (!elmProps.children) {
77
elmProps.children = 'Welcome back! Log in to your account.';
88
}
9-
return <Block tagName={tagName} {...elmProps} keyname={keyname || name} />;
9+
return <Block tagName={tagName} {...elmProps} keyname={keyname} />;
1010
};

0 commit comments

Comments
 (0)