Fix ReferenceError by wiring profile from AuthContext
cgen-b8b2715943bf4172ba88a98ce803c21b
This commit is contained in:
parent
7be1e9a738
commit
e6c82c8c2a
1 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ import LoadingScreen from "@/components/LoadingScreen";
|
|||
import { aethexToast } from "@/lib/aethex-toast";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Link, useLocation, useNavigate } from "react-router-dom";
|
||||
import { useAuth } from "@/contexts/AuthContext";
|
||||
import FeaturedStudiosGrid from "@/components/community/FeaturedStudiosGrid";
|
||||
import {
|
||||
useCallback,
|
||||
|
|
@ -644,6 +645,7 @@ function PollCard({ poll, selectedOption, onSelect }: PollCardProps) {
|
|||
}
|
||||
|
||||
export default function Community() {
|
||||
const { profile } = useAuth();
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const toastShownRef = useRef(false);
|
||||
const [knowledgeQuery, setKnowledgeQuery] = useState("");
|
||||
|
|
|
|||
Loading…
Reference in a new issue