Use new exported components

This commit is contained in:
Jonas Dellinger 2022-05-26 13:33:25 +02:00
parent f554798ee4
commit a5d491256f

View file

@ -1,8 +1,10 @@
import { import {
Button, ButtonItem,
definePlugin, definePlugin,
Menu, Menu,
MenuItem, MenuItem,
PanelSection,
PanelSectionRow,
ServerAPI, ServerAPI,
showModal, showModal,
staticClasses, staticClasses,
@ -35,8 +37,9 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({}) => {
// }; // };
return ( return (
<div> <PanelSection title="Panel Section">
<Button <PanelSectionRow>
<ButtonItem
layout="below" layout="below"
onClick={(e) => onClick={(e) =>
showModal( showModal(
@ -50,9 +53,15 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({}) => {
} }
> >
Server says yolo Server says yolo
</Button> </ButtonItem>
</PanelSectionRow>
<PanelSectionRow>
<div style={{ display: "flex", justifyContent: "center" }}>
<img src={logo} /> <img src={logo} />
</div> </div>
</PanelSectionRow>
</PanelSection>
); );
}; };