This commit is contained in:
parent
ff059626a3
commit
42cd768cf4
1 changed files with 4 additions and 2 deletions
|
@ -218,7 +218,7 @@ class App extends React.Component<IAppProps> {
|
|||
onClick={() => this.ToggleSidebar()}
|
||||
buttonOnClick={(type: string) => this.AddContainer(type)}
|
||||
/>
|
||||
<button className='fixed z-10 top-4 left-4 text-lg bg-blue-200 hover:bg-blue-300 transition-all drop-shadow-md hover:drop-shadow-lg py-2 px-3 rounded-lg' onClick={() => this.ToggleSidebar()}>☰ Menu</button>
|
||||
<button className='fixed z-10 top-4 left-4 text-lg bg-blue-200 hover:bg-blue-300 transition-all drop-shadow-md hover:drop-shadow-lg py-2 px-3 rounded-lg' onClick={() => this.ToggleSidebar()}>☰ Components</button>
|
||||
<ElementsSidebar
|
||||
MainContainer={this.state.MainContainer}
|
||||
SelectedContainer={this.state.SelectedContainer}
|
||||
|
@ -227,7 +227,7 @@ class App extends React.Component<IAppProps> {
|
|||
onPropertyChange={(key: string, value: string) => this.OnPropertyChange(key, value)}
|
||||
selectContainer={(container: Container) => this.SelectContainer(container)}
|
||||
/>
|
||||
<button className='fixed z-10 top-4 right-12 text-lg bg-slate-200 hover:bg-slate-300 transition-all drop-shadow-md hover:drop-shadow-lg py-2 px-3 rounded-lg' onClick={() => this.ToggleElementsSidebar()}>☰ Menu</button>
|
||||
<button className='fixed z-10 top-4 right-12 text-lg bg-slate-200 hover:bg-slate-300 transition-all drop-shadow-md hover:drop-shadow-lg py-2 px-3 rounded-lg' onClick={() => this.ToggleElementsSidebar()}>☰ Elements</button>
|
||||
<SVG>
|
||||
{ this.state.MainContainer }
|
||||
</SVG>
|
||||
|
@ -243,6 +243,8 @@ class App extends React.Component<IAppProps> {
|
|||
export async function fetchConfiguration(): Promise<Configuration> {
|
||||
const url = `${import.meta.env.VITE_API_URL}`;
|
||||
|
||||
// The test library cannot use the Fetch API
|
||||
// @ts-ignore
|
||||
if (window.fetch) {
|
||||
return await fetch(url, {
|
||||
method: 'POST'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue