📂 FileMgr
📍
/home/coemyoza/public_html/wp-content/plugins/give/blocks/components/edit-form
✏️ Edit File: /home/coemyoza/public_html/wp-content/plugins/give/blocks/components/edit-form/index.js
⬅ Kembali
/** * WordPress dependencies */ import { __ } from '@wordpress/i18n' import { Button } from '@wordpress/components'; /** * Internal dependencies */ import { getSiteUrl } from '../../utils'; import GiveBlankSlate from '../blank-slate'; /** * Render No forms Found UI */ const EditForm = ( { attributes, setAttributes, formId } ) => { const changeForm = () => { setAttributes( { prevId: attributes.id } ); setAttributes( { id: 0 } ); }; return ( <GiveBlankSlate title={ __( 'Edit Form.' ) } description={ __( 'An error occured with donation form settings that rendered the preview inaccessible.', 'give' ) }> <Button isPrimary isLarge target="_blank" href={ `${ getSiteUrl() }/wp-admin/post.php?post=${ formId }&action=edit` }> { __( 'Edit Donation Form', 'give' ) } </Button> <Button isLarge onClick={ changeForm }> { __( 'Change Form', 'give' ) } </Button> </GiveBlankSlate> ); }; export default EditForm;
💾 Simpan File
Batal
⬅ Naik ke components
1 item
Nama
Tipe
Ukuran
Diubah
Aksi
📜
index.js
js
984 B
2022-11-29 18:00
✏️ Edit
👁️ View
🗑 Hapus