()
| 27 | } |
| 28 | |
| 29 | const handleSave = async () => { |
| 30 | const value = licenseKeyInputRef.current?.value || '' |
| 31 | if (value === '') { |
| 32 | return |
| 33 | } |
| 34 | |
| 35 | toast(t('saving')) |
| 36 | const { isValid } = await clientValidateLicenseKey(value) |
| 37 | if (isValid) { |
| 38 | saveLicenseKey(value) |
| 39 | toast(t('saved'), { icon: '✅' }) |
| 40 | } else { |
| 41 | toast(t('license_wrong'), { icon: '❌' }) |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | return ( |
| 46 | <> |
nothing calls this directly
no test coverage detected