feat(ui): Action playground config and parameter forms (#129)
This commit is contained in:
committed by
GitHub
parent
ffee9d8307
commit
1eee5b5a32
@@ -1,5 +1,5 @@
|
||||
import { useState } from 'react'
|
||||
import { Outlet, Link } from 'react-router-dom'
|
||||
import { Outlet, Link, useOutletContext } from 'react-router-dom'
|
||||
import './App.css'
|
||||
|
||||
function App() {
|
||||
@@ -19,6 +19,9 @@ function App() {
|
||||
setMobileMenuOpen(!mobileMenuOpen);
|
||||
};
|
||||
|
||||
// Provide showToast to children
|
||||
const context = { showToast };
|
||||
|
||||
return (
|
||||
<div className="app-container">
|
||||
{/* Navigation Menu */}
|
||||
@@ -110,7 +113,7 @@ function App() {
|
||||
{/* Main Content Area */}
|
||||
<main className="main-content">
|
||||
<div className="container">
|
||||
<Outlet context={{ showToast }} />
|
||||
<Outlet context={context} />
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user