Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mark86092 committed Sep 12, 2023
1 parent 8ba7128 commit 0a8b71e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
4 changes: 0 additions & 4 deletions src/components/ExperienceDetail/hooks/useTrace.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { useEffect } from 'react';
import ReactPixel from 'react-facebook-pixel';
<<<<<<< HEAD
import PIXEL_CONTENT_CATEGORY from '../../../constants/pixelConstants';
=======
import PIXEL_CONTENT_CATEGORY from 'constants/pixelConstants';
>>>>>>> upstream/dev
import { useViewExperiences } from 'hooks/viewLog';

const useTrace = experienceId => {
Expand Down
4 changes: 0 additions & 4 deletions src/components/common/facebook/FacebookWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ const FacebookWrapper = ({ children }) => {
const container = useRef(null);

useEffect(() => {
<<<<<<< HEAD
if (FB && container) {
=======
if (FB && container.current) {
>>>>>>> upstream/dev
FB.XFBML.parse(container.current);
}
});
Expand Down
6 changes: 1 addition & 5 deletions src/hooks/usePermission.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
import { useContext, useCallback } from 'react';
import PermissionContext from 'common/permission-context/PermissionContext';
import { useToken } from 'hooks/auth';
<<<<<<< HEAD
import { getHasSearchPermission } from 'apis/me';
=======
import api from '../apis';

const useGetSearchPermission = ({ token }) => {
return useCallback(async () => {
if (token === null) return false;
// Get permission only when token available
return await api.me.getHasSearchPermission({ token });
return await getHasSearchPermission({ token });
}, [token]);
};
>>>>>>> upstream/master

export default () => {
const token = useToken();
Expand Down

0 comments on commit 0a8b71e

Please sign in to comment.