Skip to content

Commit

Permalink
usePostHogContex
Browse files Browse the repository at this point in the history
  • Loading branch information
bdougie committed Jun 6, 2023
1 parent cf44cc6 commit fcf5a82
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState, useEffect, use } from "react";
import Avatar from "components/atoms/Avatar/avatar";
import Image from "next/image";
import RainbowBg from "img/rainbow-cover.png";
Expand All @@ -8,7 +8,7 @@ import { MarkGithubIcon } from "@primer/octicons-react";
import { User } from "@supabase/supabase-js";
import { FiCopy } from "react-icons/fi";
import { useToast } from "lib/hooks/useToast";
import { usePostHog } from 'posthog-js/react'
import { usePostHogContext } from 'posthog-js/react'

interface ContributorProfileHeaderProps {
avatarUrl?: string;
Expand All @@ -34,7 +34,7 @@ const ContributorProfileHeader = ({
handleSignIn,
isOwner
}: ContributorProfileHeaderProps) => {
const posthog = usePostHog()
const posthog = usePostHogContext()
const { toast } = useToast();
const [host, setHost] = useState("");
const handleFollowClick = () => {
Expand Down

0 comments on commit fcf5a82

Please sign in to comment.