Skip to content

Commit

Permalink
[#546] fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sworzen1 committed Apr 16, 2024
1 parent ace8a05 commit 2fb5031
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions govtool/frontend/src/context/usersnapContext.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import React, { useEffect, useState, useContext, useCallback } from "react";
import React, {
useEffect,
useState,
useContext,
useCallback,
useMemo,
} from "react";
import { InitOptions, WidgetApi, loadSpace } from "@usersnap/browser";
import {
SpaceEventCallback,
Expand Down Expand Up @@ -45,8 +51,10 @@ export const UsersnapProvider = ({
});
}, [initParams]);

const value = useMemo(() => ({ openFeedbackWindow }), [openFeedbackWindow]);

return (
<UsersnapContext.Provider value={{ openFeedbackWindow }}>
<UsersnapContext.Provider value={value}>
{children}
</UsersnapContext.Provider>
);
Expand Down

0 comments on commit 2fb5031

Please sign in to comment.