$13 GRAYBYTE WORDPRESS FILE MANAGER $63

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/itiministry.org/wp-content/plugins/give/src/Admin/fields/Status/

HOME
Current File : /home/bravrvjk/itiministry.org/wp-content/plugins/give/src/Admin/fields/Status//index.tsx
import { __ } from "@wordpress/i18n";
import cx from "classnames";
import { AdminSectionField } from "@givewp/components/AdminDetailsPage/AdminSection";
import Notice from "@givewp/admin/components/Notices";
import { useFormContext, useFormState } from "react-hook-form";
import styles from "./styles.module.scss";

/**
 * @since 4.10.0
 */
export default function Status({statusOptions}: {statusOptions: Record<string, string>}) {
    const {register, watch} = useFormContext();
    const {errors} = useFormState();
    const {isDirty, dirtyFields} = useFormState();
    const isStatusDirty = isDirty && dirtyFields?.status;
    const status = watch('status');

    return (
        <AdminSectionField error={errors.status?.message as string}>
            <label htmlFor="status">{__('Status', 'give')}</label>
            <div className={cx(styles.statusSelect, styles[`statusSelect--${status}`])}>
                <select id="status" className={styles.statusSelectInput} {...register('status')}>
                    {statusOptions && (
                        Object.entries(statusOptions).map(([value, label]) => (
                            <option key={value} value={value}>
                                {label as string}
                            </option>
                        ))
                    )}
                </select>
            </div>

            {isStatusDirty && (
                <Notice type="info" className={styles.notice}>
                    {__('This will not change the status at the gateway.', 'give')}
                </Notice>
            )}
        </AdminSectionField>
    );
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2026 1.57 AM
bravrvjk / bravrvjk
0755
index.tsx
1.586 KB
1 Oct 2025 3.37 PM
bravrvjk / bravrvjk
0644
styles.module.scss
1.056 KB
1 Oct 2025 3.37 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF