{
- //if (!isCloud) {
- // toast("Since this is an on-prem instance. You will need to activate the app yourself. Opening link to download it in a new window.")
- // setTimeout(() => {
- // event.preventDefault()
- // window.open(parsedUrl, '_blank')
- // }, 2000)
- //} else {
- toast(`Activating ${name}`)
- //}
+ var appdragged = false
+ return (
+
{
+ e.preventDefault()
+ e.stopPropagation()
- console.log("CLICK: ", hit)
+ if (!appdragged) {
+ clickedApp(hit)
+ }
+
+ appdragged = true
+ }}
+ onStop={(e) => {
+ }}
+ dragging={false}
+ position={{
+ x: 0,
+ y: 0,
+ }}
+ >
+ {
+ clickedApp(hit)
- const queryID = hit.__queryID
- console.log("QUERY: ", queryID)
-
- if (queryID !== undefined && queryID !== null) {
- aa('init', {
- appId: "JNSS5CFDZZ",
- apiKey: "db08e40265e2941b9a7d8f644b6e5240",
- })
-
- const timestamp = new Date().getTime()
- aa('sendEvents', [
- {
- eventType: 'conversion',
- eventName: 'Public App Activated',
- index: 'appsearch',
- objectIDs: [hit.objectID],
- timestamp: timestamp,
- queryID: queryID,
- userToken: userdata === undefined || userdata === null || userdata.id === undefined ? "unauthenticated" : userdata.id,
- }
- ])
- } else {
- console.log("No query to handle when activating")
- }
-
- activateApp(hit.objectID, true)
- }}>
- {
- setMouseHoverIndex(index)
- }}>
-
- {avatar}
-
-
- {/*
-
-
-
-
-
- */}
-
-
- )
- })
- }
-
-
+ }}>
+