We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent accd043 commit 40bee01Copy full SHA for 40bee01
pages/page3/src/control/Welcome.tsx
@@ -2,9 +2,9 @@ import { PropsWithChildren } from 'react';
2
import { Block, BlockProps, BlockTagType } from 'react-login-page';
3
4
export const Welcome = <T extends BlockTagType>(props: PropsWithChildren<Partial<BlockProps<T>>>) => {
5
- const { keyname, name = 'title', tagName = 'section', ...elmProps } = props;
+ const { keyname = 'welcome', tagName = 'section', ...elmProps } = props;
6
if (!elmProps.children) {
7
elmProps.children = 'Welcome back! Log in to your account.';
8
}
9
- return <Block tagName={tagName} {...elmProps} keyname={keyname || name} />;
+ return <Block tagName={tagName} {...elmProps} keyname={keyname} />;
10
};
0 commit comments