(function P
title={option.title}
view={isSelected ? 'normal' : 'flat'}
selected={isSelected}
- extraProps={{value: option.value}}
+ value={option.value}
size={size}
onClick={() => handleSelection(option)}
>
diff --git a/src/components/PlaceholderContainer/PlaceholderContainer.tsx b/src/components/PlaceholderContainer/PlaceholderContainer.tsx
index 36d920e69c..c9f30c23f1 100644
--- a/src/components/PlaceholderContainer/PlaceholderContainer.tsx
+++ b/src/components/PlaceholderContainer/PlaceholderContainer.tsx
@@ -1,6 +1,7 @@
import * as React from 'react';
import {Button} from '../Button';
+import type {ButtonProps} from '../Button';
import {block} from '../utils/cn';
import {componentClassName} from './constants';
@@ -10,19 +11,11 @@ import './PlaceholderContainer.scss';
const b = block(componentClassName);
-const PlaceholderContainerAction = (props: PlaceholderContainerActionProps) => {
+const PlaceholderContainerAction = ({text, ...buttonProps}: PlaceholderContainerActionProps) => {
return (
-
);
diff --git a/src/components/PlaceholderContainer/types.ts b/src/components/PlaceholderContainer/types.ts
index c4fdad608b..db29d420d9 100644
--- a/src/components/PlaceholderContainer/types.ts
+++ b/src/components/PlaceholderContainer/types.ts
@@ -14,8 +14,9 @@ export type PlaceholderContainerImageProps = {
export type PlaceholderContainerActionProps = Pick<
ButtonProps,
- 'disabled' | 'loading' | 'view' | 'size' | 'href' | 'onClick'
+ 'disabled' | 'loading' | 'view' | 'size' | 'onClick'
> & {
+ href?: string;
text: string;
};
diff --git a/src/components/Popover/Popover.tsx b/src/components/Popover/Popover.tsx
index e6926af52d..cc7196f710 100644
--- a/src/components/Popover/Popover.tsx
+++ b/src/components/Popover/Popover.tsx
@@ -177,9 +177,7 @@ export const Popover = React.forwardRef