add ai_fallback to TaskV2Request model (#3498)
This commit is contained in:
@@ -1,16 +1,9 @@
|
||||
interface AnimatedWaveProps {
|
||||
text: string;
|
||||
className?: string;
|
||||
duration?: string;
|
||||
waveHeight?: string;
|
||||
}
|
||||
|
||||
export function AnimatedWave({
|
||||
text,
|
||||
className = "",
|
||||
duration = "1.3s",
|
||||
waveHeight = "4px",
|
||||
}: AnimatedWaveProps) {
|
||||
export function AnimatedWave({ text, className = "" }: AnimatedWaveProps) {
|
||||
const characters = text.split("");
|
||||
|
||||
return (
|
||||
@@ -21,7 +14,7 @@ export function AnimatedWave({
|
||||
transform: translateY(0px);
|
||||
}
|
||||
50% {
|
||||
transform: translateY(-${waveHeight});
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
}
|
||||
.animate-wave {
|
||||
@@ -35,7 +28,7 @@ export function AnimatedWave({
|
||||
className="animate-wave inline-block"
|
||||
style={{
|
||||
animationDelay: `${index * 0.1}s`,
|
||||
animationDuration: duration,
|
||||
animationDuration: "1.3s",
|
||||
animationIterationCount: "infinite",
|
||||
animationTimingFunction: "ease-in-out",
|
||||
}}
|
||||
|
||||
@@ -4,7 +4,6 @@ import { NavLink, useSearchParams } from "react-router-dom";
|
||||
type Option = {
|
||||
label: string;
|
||||
to: string;
|
||||
icon?: React.ReactNode;
|
||||
};
|
||||
|
||||
type Props = {
|
||||
@@ -24,18 +23,13 @@ function SwitchBarNavigation({ options }: Props) {
|
||||
key={option.to}
|
||||
className={({ isActive }) => {
|
||||
return cn(
|
||||
"flex cursor-pointer items-center justify-center rounded-sm px-3 py-2 text-center hover:bg-slate-700",
|
||||
"cursor-pointer rounded-sm px-3 py-2 hover:bg-slate-700",
|
||||
{
|
||||
"bg-slate-700": isActive,
|
||||
},
|
||||
);
|
||||
}}
|
||||
>
|
||||
{option.icon && (
|
||||
<span className="mr-1 flex items-center justify-center">
|
||||
{option.icon}
|
||||
</span>
|
||||
)}
|
||||
{option.label}
|
||||
</NavLink>
|
||||
);
|
||||
@@ -44,4 +38,4 @@ function SwitchBarNavigation({ options }: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
export { SwitchBarNavigation, type Option as SwitchBarNavigationOption };
|
||||
export { SwitchBarNavigation };
|
||||
|
||||
Reference in New Issue
Block a user