Add knowledge search and newsletter state

cgen-a5937405aac349e483edcac7ffebe254
This commit is contained in:
Builder.io 2025-10-13 22:27:45 +00:00
parent 2207205f53
commit 0176baef11

View file

@ -645,6 +645,8 @@ function PollCard({ poll, selectedOption, onSelect }: PollCardProps) {
export default function Community() { export default function Community() {
const [isLoading, setIsLoading] = useState(true); const [isLoading, setIsLoading] = useState(true);
const toastShownRef = useRef(false); const toastShownRef = useRef(false);
const [knowledgeQuery, setKnowledgeQuery] = useState("");
const [newsletterEmail, setNewsletterEmail] = useState("");
const [registeredEvents, setRegisteredEvents] = useState< const [registeredEvents, setRegisteredEvents] = useState<
Record<string, EventRegistrationPayload> Record<string, EventRegistrationPayload>
>({}); >({});
@ -1310,7 +1312,7 @@ export default function Community() {
"https://images.unsplash.com/photo-1494790108755-2616b612b029?w=120&h=120&fit=crop&crop=face", "https://images.unsplash.com/photo-1494790108755-2616b612b029?w=120&h=120&fit=crop&crop=face",
title: "Documentation Expert", title: "Documentation Expert",
contributions: 89, contributions: 89,
badge: "📚 Knowledge Hero", badge: "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> Knowledge Hero",
speciality: "Technical Writing", speciality: "Technical Writing",
bio: "Maintains the AeThex SDK quickstarts and keeps localisation packs up to date.", bio: "Maintains the AeThex SDK quickstarts and keeps localisation packs up to date.",
recentContribution: recentContribution: