PluginProbe
Extendify / 3.1.5
Extendify v3.1.5
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 / QuickEdit / components / ErrorPill.jsx

ErrorPill.jsx in Extendify 3.1.5, at src/QuickEdit/components/ErrorPill.jsx

21 lines 606 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n';
2
3 // Fixed top-right alert reused for every Quick Edit dismissible notice —
4 // unsupported-block, image-save failures, and the translated-content guard.
5 export const ErrorPill = ({ message, onDismiss }) => (
6 <div
7 role="alert"
8 className="fixed top-4 right-4 z-[9999] flex items-center gap-2 px-3 py-2 rounded bg-red-100 text-red-700 text-sm shadow"
9 >
10 <span>{message}</span>
11 <button
12 type="button"
13 aria-label={__('Dismiss', 'extendify-local')}
14 className="font-bold opacity-70 hover:opacity-100"
15 onClick={onDismiss}
16 >
17 ×
18 </button>
19 </div>
20 );
21