Remove withDismiss prop from status, update CHANGELOG
This commit is contained in:
@@ -98,7 +98,6 @@ const messages = defineMessages({
|
||||
|
||||
interface IStatusActionBar {
|
||||
status: Status,
|
||||
withDismiss?: boolean,
|
||||
withLabels?: boolean,
|
||||
expandable?: boolean,
|
||||
space?: 'expand' | 'compact',
|
||||
@@ -106,7 +105,6 @@ interface IStatusActionBar {
|
||||
|
||||
const StatusActionBar: React.FC<IStatusActionBar> = ({
|
||||
status,
|
||||
withDismiss = false,
|
||||
withLabels = false,
|
||||
expandable = true,
|
||||
space = 'compact',
|
||||
|
||||
@@ -53,7 +53,6 @@ export interface IStatus {
|
||||
hoverable?: boolean,
|
||||
variant?: 'default' | 'rounded',
|
||||
showGroup?: boolean,
|
||||
withDismiss?: boolean,
|
||||
accountAction?: React.ReactElement,
|
||||
}
|
||||
|
||||
@@ -74,7 +73,6 @@ const Status: React.FC<IStatus> = (props) => {
|
||||
hideActionBar,
|
||||
variant = 'rounded',
|
||||
showGroup = true,
|
||||
withDismiss,
|
||||
} = props;
|
||||
|
||||
const intl = useIntl();
|
||||
@@ -421,7 +419,7 @@ const Status: React.FC<IStatus> = (props) => {
|
||||
|
||||
{(!hideActionBar && !isUnderReview) && (
|
||||
<div className='pt-4'>
|
||||
<StatusActionBar status={actualStatus} withDismiss={withDismiss} />
|
||||
<StatusActionBar status={actualStatus} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -325,7 +325,6 @@ const Notification: React.FC<INotificaton> = (props) => {
|
||||
return status && typeof status === 'object' ? (
|
||||
<StatusContainer
|
||||
id={status.id}
|
||||
withDismiss
|
||||
hidden={hidden}
|
||||
onMoveDown={handleMoveDown}
|
||||
onMoveUp={handleMoveUp}
|
||||
|
||||
Reference in New Issue
Block a user