PluginProbe
Code Snippets / 3.5.0
Code Snippets v3.5.0
4.0.0-beta.3 4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 All 66 releases
code-snippets / js / Edit / fields / MultisiteSharingSettings.tsx

MultisiteSharingSettings.tsx in Code Snippets 3.5.0, at js/Edit/fields/MultisiteSharingSettings.tsx

21 lines 769 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from 'react'
2 import { __ } from '@wordpress/i18n'
3 import { SnippetInputProps } from '../../types/SnippetInputProps'
4
5 export const MultisiteSharingSettings: React.FC<SnippetInputProps> = ({ snippet, setSnippet, isReadOnly }) =>
6 <>
7 <h2 className="screen-reader-text">{__('Sharing Settings', 'code-snippets')}</h2>
8 <p className="snippet-sharing-setting">
9 <label htmlFor="snippet_sharing">
10 <input
11 type="checkbox"
12 name="snippet_sharing"
13 checked={!!snippet.shared_network}
14 disabled={isReadOnly}
15 onChange={event => setSnippet(previous => ({ ...previous, shared_network: event.target.checked }))}
16 />
17 {__('Allow this snippet to be activated on individual sites on the network', 'code-snippets')}
18 </label>
19 </p>
20 </>
21