Skip to content

Commit

Permalink
Implement selection marshal for all reconcilers
Browse files Browse the repository at this point in the history
adeira-source-id: 74cf28122d6dde416b676e7e39f959b23065670f
  • Loading branch information
itsdouges authored and triplex-bot committed Dec 24, 2024
1 parent 39ee1ba commit 56a1b71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/test-fixture/src/component-roots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function ThreeFiberRootFromAnotherModule() {
}

export function ReactRoot() {
return <div data-testid="react-root">Hello World</div>;
return <div data-testid="react-root" style={{ height: '100vh', width: '100vh' }}>Hello World</div>;
}

export function ReactRootFromAnotherModule() {
Expand Down
14 changes: 3 additions & 11 deletions examples/test-fixture/src/react-roots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,14 @@
import { Canvas } from "@react-three/fiber";

export function Button({
color = "red",
text,
type = "button",
variant = 'default',
}: {
color?: "red" | "blue";
text: string;
type?: "submit" | "button";
variant?: "default" | "primary";
}) {
return (
<button
style={{
background: variant === "primary" ? "blue" : "gray",
color: variant === "primary" ? "white" : "black",
}}
type={type}
>
<button style={{ color, height: "100vh", width: "100vh" }} type="submit">
{text}
</button>
);
Expand Down

0 comments on commit 56a1b71

Please sign in to comment.