@igamingcareer/igaming-components 1.0.84 → 1.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +18 -0
- package/dist/index.js +81 -81
- package/dist/index.mjs +3017 -2991
- package/package.json +1 -1
package/Readme.md
CHANGED
|
@@ -204,6 +204,24 @@ export function CompanyClaimExample({ company, canClaim }: { company: Company; c
|
|
|
204
204
|
}
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
+
## Claim profile dialog submissions (CompanyDetail)
|
|
208
|
+
|
|
209
|
+
When the claim dialog is submitted from `CompanyDetail`, the component emits a structured payload so your app can handle the request outside the library.
|
|
210
|
+
|
|
211
|
+
```tsx
|
|
212
|
+
import { CompanyDetail } from "@igamingcareer/igaming-components";
|
|
213
|
+
import type { CompanyClaimRequestPayload } from "@igamingcareer/igaming-components";
|
|
214
|
+
|
|
215
|
+
export function CompanyDetailWithClaim({ company }: { company: Company }) {
|
|
216
|
+
const handleClaimSubmit = (payload: CompanyClaimRequestPayload) => {
|
|
217
|
+
// send to your API or analytics
|
|
218
|
+
console.log("claim submit", payload);
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
return <CompanyDetail company={company} onClaimSubmit={handleClaimSubmit} />;
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
207
225
|
## CV upload from the dashboard
|
|
208
226
|
|
|
209
227
|
The dashboard emits CV upload events so the host application can upload, store,
|