Skip to content

Commit 49dcba6

Browse files
authored
Use success notice when unblocking a site (#103262)
* replace plain notice with success notice * update test to match expected status
1 parent 2e895d0 commit 49dcba6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/state/data-layer/wpcom/me/block/sites/delete/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { registerHandlers } from 'calypso/state/data-layer/handler-registry';
66
import { bypassDataLayer } from 'calypso/state/data-layer/utils';
77
import { http } from 'calypso/state/data-layer/wpcom-http/actions';
88
import { dispatchRequest } from 'calypso/state/data-layer/wpcom-http/utils';
9-
import { errorNotice, plainNotice } from 'calypso/state/notices/actions';
9+
import { errorNotice, successNotice } from 'calypso/state/notices/actions';
1010
import { READER_SITE_UNBLOCK } from 'calypso/state/reader/action-types';
1111
import { blockSite } from 'calypso/state/reader/site-blocks/actions';
1212

@@ -31,7 +31,7 @@ export function fromApi( response ) {
3131
}
3232

3333
export function receiveSiteUnblock() {
34-
return plainNotice( translate( 'The site has been successfully unblocked.' ), {
34+
return successNotice( translate( 'The site has been successfully unblocked.' ), {
3535
duration: 5000,
3636
} );
3737
}

client/state/data-layer/wpcom/me/block/sites/delete/test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe( 'site-blocks', () => {
2727
expect( dispatchedAction ).toEqual(
2828
expect.objectContaining( {
2929
notice: expect.objectContaining( {
30-
status: 'is-plain',
30+
status: 'is-success',
3131
} ),
3232
} )
3333
);

0 commit comments

Comments
 (0)