Update index.tsx

This commit is contained in:
Manti 2023-02-20 21:11:47 +03:00
parent 8c589a1519
commit 79722f4048

View file

@ -220,7 +220,7 @@ export default definePlugin({
} : {}) } : {})
}} }}
> >
{!isInEditMode && <span style={timezone ? { cursor: "pointer", } : {}} onClick={() => { {!isInEditMode && <span style={{ fontSize: "1.2em", cursor: (timezone ? "pointer" : "") }} onClick={() => {
if (timezone) { if (timezone) {
Toasts.show({ Toasts.show({
type: Toasts.Type.MESSAGE, type: Toasts.Type.MESSAGE,
@ -252,7 +252,8 @@ export default definePlugin({
width: "60%", width: "60%",
marginTop: "5%" marginTop: "5%"
} : { } : {
marginLeft: "5%" marginLeft: "2%",
display: "flex"
}} }}
> >
<EditIcon <EditIcon
@ -290,7 +291,6 @@ export default definePlugin({
height="16" height="16"
width="16" width="16"
/> />
{isInEditMode && {isInEditMode &&
<DeleteIcon <DeleteIcon
style={{ cursor: "pointer", padding: "2px", border: "2px solid grey", borderRadius: "50px" }} style={{ cursor: "pointer", padding: "2px", border: "2px solid grey", borderRadius: "50px" }}
@ -322,7 +322,7 @@ export default definePlugin({
/> />
} }
</span> </span>
</Text> </Text >
); );
} }
, ,