mirror of
https://github.com/vercel/ai-elements.git
synced 2026-09-14 19:48:26 +08:00
Remove invalid Shimmer fallback now that children text is required (#388)
* Remove invalid Shimmer fallback now that children text is required * Remove unused Shimmer import, add changeset Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"ai-elements": patch
|
||||
---
|
||||
|
||||
Remove invalid Shimmer fallback from TerminalStatus now that Shimmer requires children text
|
||||
@@ -16,7 +16,6 @@ import {
|
||||
useState,
|
||||
} from "react";
|
||||
|
||||
import { Shimmer } from "./shimmer";
|
||||
|
||||
interface TerminalContextType {
|
||||
output: string;
|
||||
@@ -133,7 +132,7 @@ export const TerminalStatus = ({
|
||||
className={cn("flex items-center gap-2 text-xs text-zinc-400", className)}
|
||||
{...props}
|
||||
>
|
||||
{children ?? <Shimmer className="w-16" />}
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user