PluginProbe
Extendify / 0.9.3
Extendify v0.9.3
3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 All 126 releases
extendify / src / Library / components / modals / settings / SettingsModal.js

SettingsModal.js in Extendify 0.9.3, at src/Library/components/modals/settings/SettingsModal.js

27 lines 848 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { useRef } from '@wordpress/element'
2 import { __ } from '@wordpress/i18n'
3 import { useGlobalStore } from '@library/state/GlobalState'
4 import { Modal } from '../Modal'
5 import { DevSettings } from './DevSettings'
6 import LoginInterface from './LoginInterface'
7
8 export const SettingsModal = () => {
9 const initialFocus = useRef(null)
10 const actionCallback = useGlobalStore((state) => state.removeAllModals)
11
12 return (
13 <Modal
14 heading={__('Settings', 'extendify')}
15 isOpen={true}
16 ref={initialFocus}>
17 <div className="flex justify-center flex-col divide-y">
18 <DevSettings />
19 <LoginInterface
20 initialFocus={initialFocus}
21 actionCallback={actionCallback}
22 />
23 </div>
24 </Modal>
25 )
26 }
27