Skip to content

Commit

Permalink
adding props back
Browse files Browse the repository at this point in the history
  • Loading branch information
houmland committed Dec 10, 2023
1 parent ffe40e5 commit 70dd3dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function App() {
<Stack
project="https://www.stack-ai.com/embed/stack[testt]/c9a85553-64aa-45d1-923d-d125825c2b2b/656cf12c16dd780760afde33"
width = {35}
fixed = {false}
fixed = {true}
/>
</>
);
Expand Down
9 changes: 8 additions & 1 deletion src/Stack.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { forwardRef, useEffect} from 'react';
import { forwardRef, useEffect, LegacyRef} from 'react';

type StackProps = {
project: string;
innerRef?: LegacyRef<HTMLIFrameElement> | undefined;
width?: number;
fixed?: boolean;
};

const Stack = forwardRef(function Stack({
project,
Expand Down

0 comments on commit 70dd3dd

Please sign in to comment.