Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ export const Preinstalled: FunctionComponent = () => {
}).catch(logError);
};

const handleSubmitTrackEvent = () => {
invokeSnap({
snapId: PREINSTALLED_SNAP_ID,
method: 'trackEvent',
}).catch(logError);
};

const handleStartTrace = () => {
invokeSnap({
snapId: PREINSTALLED_SNAP_ID,
Expand Down Expand Up @@ -76,6 +83,14 @@ export const Preinstalled: FunctionComponent = () => {
>
Track error
</Button>
<Button
variant="primary"
id="trackEvent"
disabled={isLoading}
onClick={handleSubmitTrackEvent}
>
Track event
</Button>
</ButtonGroup>
<ButtonGroup className="mb-3">
<Button
Expand Down
Loading