-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff5734a
commit 9c90623
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Alert, MantineProvider, Stack, Text } from '@mantine/core'; | ||
import { StrictMode } from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
|
||
|
||
function WirevizSettings({context}: {context: any}) { | ||
|
||
console.log("settings context:", context); | ||
|
||
return ( | ||
<Stack gap="xs"> | ||
<Alert color="green" title="Hello World"> | ||
<Text>Check it out - custom settings code!!</Text> | ||
</Alert> | ||
</Stack> | ||
); | ||
} | ||
|
||
|
||
export function renderPluginSettings(target: HTMLElement | null, context: any) { | ||
|
||
createRoot(target!).render( | ||
<StrictMode> | ||
<MantineProvider> | ||
<WirevizSettings context={context} /> | ||
</MantineProvider> | ||
</StrictMode> | ||
); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters