Skip to content

Commit a5d7259

Browse files
SaxonFtalldan
authored andcommitted
update pattern creation modal in library
1 parent 52d1b8d commit a5d7259

File tree

1 file changed

+5
-9
lines changed
  • packages/edit-site/src/components/create-pattern-modal

1 file changed

+5
-9
lines changed

packages/edit-site/src/components/create-pattern-modal/index.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function CreatePatternModal( {
2626
onError,
2727
} ) {
2828
const [ name, setName ] = useState( '' );
29-
const [ syncType, setSyncType ] = useState( SYNC_TYPES.full );
29+
const [ syncType, setSyncType ] = useState( SYNC_TYPES.unsynced );
3030
const [ isSubmitting, setIsSubmitting ] = useState( false );
3131

3232
const onSyncChange = () => {
@@ -77,8 +77,6 @@ export default function CreatePatternModal( {
7777
onRequestClose={ closeModal }
7878
overlayClassName="edit-site-create-pattern-modal"
7979
>
80-
<p>{ __( 'Turn this block into a pattern to reuse later' ) }</p>
81-
8280
<form
8381
onSubmit={ async ( event ) => {
8482
event.preventDefault();
@@ -100,13 +98,11 @@ export default function CreatePatternModal( {
10098
__nextHasNoMarginBottom
10199
/>
102100
<ToggleControl
103-
label={ __( 'Synced' ) }
101+
label={ __( 'Keep all pattern instances in sync' ) }
104102
onChange={ onSyncChange }
105-
help={
106-
syncType === SYNC_TYPES.full
107-
? __( 'Content is synced' )
108-
: __( 'Content is not synced' )
109-
}
103+
help={ __(
104+
'Editing the original pattern will also update anywhere the pattern is used.'
105+
) }
110106
checked={ syncType === SYNC_TYPES.full }
111107
/>
112108
<HStack justify="right">

0 commit comments

Comments
 (0)