Skip to content

Commit

Permalink
fix(react-vdom): message block inflight fiber node index
Browse files Browse the repository at this point in the history
  • Loading branch information
pnd280 committed Jan 30, 2025
1 parent 6d2c4ec commit 9feef5b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 42 deletions.
31 changes: 0 additions & 31 deletions src/components/icons/StabilityAiIcon.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { AiOutlineOpenAI } from "react-icons/ai";

import BlackForestLabs from "@/components/icons/BlackForestLabsIcon";
import PlaygroundAiIcon from "@/components/icons/PlaygroundAiIcon";
import StabilityAiIcon from "@/components/icons/StabilityAiIcon";
import { ImageGenModel } from "@/data/plugins/image-gen-model-selector/image-gen-model-seletor.types";

export const imageGenModelIcons: Record<
Expand All @@ -12,5 +11,4 @@ export const imageGenModelIcons: Record<
flux: BlackForestLabs,
"dall-e-3": AiOutlineOpenAI,
default: PlaygroundAiIcon,
sdxl: StabilityAiIcon,
};
5 changes: 0 additions & 5 deletions src/data/plugins/image-gen-model-selector/image-gen-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,4 @@ export const imageGenModels = [
shortLabel: "Playground",
code: "default",
},
{
label: "Stable Diffusion XL",
shortLabel: "SDXL",
code: "sdxl",
},
] as const;
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default function PromptHistoryPluginDetails() {
return (
<div className="x-flex x-max-w-lg x-flex-col x-gap-4">
<P>
Frustrated when losing your prompt? This plugin will save your prompt to
history and allow you to easily access it.
Frustrated when losing your prompt? This plugin will locally save your
prompt to history and allow you to easily access it.
</P>
<Switch
textLabel="Enable"
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/_core/react-vdom/listeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ export function setupReactVdomListeners() {
findReactFiberNodeValue({
fiberNode: ($el[0] as any)[getReactFiberKey($el[0])],
condition: (node) =>
!!(node.memoizedProps.children[2].props.result.status != null),
!!(node.memoizedProps.children[3].props.result.status != null),
select: (node) =>
node.memoizedProps.children[2].props.result.status as string,
node.memoizedProps.children[3].props.result.status as string,
}),
)();

Expand Down

0 comments on commit 9feef5b

Please sign in to comment.