# give/4.18.0/src/Views/Components/AdminDetailsPage/DefaultPrimaryActionButton.tsx

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 26 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/Views/Components/AdminDetailsPage/DefaultPrimaryActionButton.tsx
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/Views/Components/AdminDetailsPage/DefaultPrimaryActionButton.tsx
- Modified: 2025-06-18T15:01:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/Views/Components/AdminDetailsPage/DefaultPrimaryActionButton.tsx#L10-L20`.

```tsx
/**
 * External Dependencies
 */
import { __ } from '@wordpress/i18n';
import {Spinner} from '@wordpress/components';

/**
 * @since 4.4.0
 */
export default function DefaultPrimaryActionButton({ isSaving, formState, className }: { isSaving: boolean, formState: any, className: string   }) {
    return (
        <button
            type="submit"
            disabled={!formState.isDirty}
            className={className}
        >
            {isSaving ? (
                <>
                    {__('Saving changes', 'give')}
                    <Spinner />
                </>
            ) : __('Save changes', 'give')}
        </button>
    );
}

```
