diff --git a/src/components/PlaceholderContainer/PlaceholderContainer.tsx b/src/components/PlaceholderContainer/PlaceholderContainer.tsx index 2c7fab8bdc..770dbf3156 100644 --- a/src/components/PlaceholderContainer/PlaceholderContainer.tsx +++ b/src/components/PlaceholderContainer/PlaceholderContainer.tsx @@ -19,7 +19,7 @@ const PlaceholderContainerAction = (props: PlaceholderContainerActionProps) => { size={props.size || 'm'} loading={Boolean(props.loading)} disabled={Boolean(props.disabled)} - href={props.href || ''} + href={props.href} {...(props.onClick ? {onClick: props.onClick} : {})} > {props.text} diff --git a/src/components/PlaceholderContainer/__stories__/PlaceholderContainer.stories.tsx b/src/components/PlaceholderContainer/__stories__/PlaceholderContainer.stories.tsx index 5215c57589..214dc397cd 100644 --- a/src/components/PlaceholderContainer/__stories__/PlaceholderContainer.stories.tsx +++ b/src/components/PlaceholderContainer/__stories__/PlaceholderContainer.stories.tsx @@ -88,6 +88,12 @@ const actionAdditionalBtnProps: PlaceholderContainerActionProps = { onClick: () => alert('Click by additional button'), }; +const actionLinkProps: PlaceholderContainerActionProps = { + text: 'Link button', + view: 'flat-info', + href: 'https://gravity-ui.com/', +}; + export const Default: Story = { args: { title: 'Some title', @@ -165,7 +171,7 @@ export const Actions: Story = {