Skip to content

Commit

Permalink
small UI change to show streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Jan 22, 2023
1 parent c9d6f71 commit 8b8b4f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/DropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function classNames(...classes: string[]) {
export type VibeType = "Professional" | "Casual" | "Funny";

interface DropDownProps {
vibe: VibeType
vibe: VibeType;
setVibe: (vibe: VibeType) => void;
}

Expand Down
6 changes: 2 additions & 4 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ import ResizablePanel from "../components/ResizablePanel";
const Home: NextPage = () => {
const [loading, setLoading] = useState(false);
const [bio, setBio] = useState("");
const [vibe, setVibe] = useState<VibeType>(
"Professional"
);
const [vibe, setVibe] = useState<VibeType>("Professional");
const [generatedBios, setGeneratedBios] = useState<String>("");

console.log("Streamed response: ", generatedBios);
Expand Down Expand Up @@ -191,7 +189,7 @@ const Home: NextPage = () => {
<ResizablePanel>
<AnimatePresence mode="wait">
<motion.div className="space-y-10 my-10">
{generatedBios && !loading && (
{generatedBios && (
<>
<div>
<h2 className="sm:text-4xl text-3xl font-bold text-slate-900 mx-auto">
Expand Down

0 comments on commit 8b8b4f0

Please sign in to comment.