PluginProbe
Extendify / 1.6.1
Extendify v1.6.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 0.7.0 All 126 releases
extendify / src / Library / components / modals / settings / SettingsModal.js

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

25 lines 772 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 LoginInterface from './LoginInterface'
6
7 export const 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 justify-center flex-col divide-y">
17 <LoginInterface
18 initialFocus={initialFocus}
19 actionCallback={actionCallback}
20 />
21 </div>
22 </Modal>
23 )
24 }
25