Skip to content

Commit

Permalink
fix(types): useRef uses null instead of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
cesconix committed Jul 7, 2024
1 parent c251c2e commit cbae749
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/pinorama-studio/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from "./components/ui/resizable"

function App() {
const panelRef = useRef<ImperativePanelHandle>()
const panelRef = useRef<ImperativePanelHandle | null>(null)

const [searchText, setSearchText] = useState("")
const [filters, setFilters] = useState({})
Expand Down
4 changes: 3 additions & 1 deletion packages/pinorama-studio/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import App from "./app"
ReactDOM.createRoot(document.getElementById("app") as HTMLElement).render(
<React.StrictMode>
<ThemeProvider defaultTheme="dark" storageKey="pinorama-studio-theme">
<PinoramaClientProvider options={{ url: "http://localhost:6200" }}>
<PinoramaClientProvider
options={{ url: "http://localhost:6200/pinorama" }}
>
<App />
</PinoramaClientProvider>
</ThemeProvider>
Expand Down

0 comments on commit cbae749

Please sign in to comment.