PluginProbe
Extendify / 0.4.0
Extendify v0.4.0
3.2.1 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 All 127 releases
extendify / src / components / modals / SettingsModal.js

SettingsModal.js in Extendify 0.4.0, at src/components/modals/SettingsModal.js

25 lines 760 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 '../../state/GlobalState'
4 import LoginInterface from '../LoginInterface'
5 import { Modal } from './Modal'
6
7 export default function SettingsModal() {
8 const initialFocus = useRef(null)
9 const actionCallback = useGlobalStore((state) => state.removeAllModals)
10
11 return (
12 <Modal
13 heading={__('Settings', 'extendify')}
14 isOpen={true}
15 ref={initialFocus}>
16 <div className="flex p-6 justify-center">
17 <LoginInterface
18 initialFocus={initialFocus}
19 actionCallback={actionCallback}
20 />
21 </div>
22 </Modal>
23 )
24 }
25