Merge pull request #2803 from MartinFournier/feat/github-actions

Adds GitHub workflows to fetch a changelog & to bump the app's version
This commit is contained in:
hydroflame
2022-01-26 00:52:06 -05:00
committed by GitHub
14 changed files with 1152 additions and 29 deletions
+4 -2
View File
@@ -1,11 +1,13 @@
import { AlertEvents } from "./AlertManager";
import React from "react";
import { SxProps } from "@mui/system";
import { Typography } from "@mui/material";
export function dialogBoxCreate(txt: string | JSX.Element): void {
export function dialogBoxCreate(txt: string | JSX.Element, styles?: SxProps): void {
if (typeof txt !== "string") {
AlertEvents.emit(txt);
} else {
AlertEvents.emit(<span dangerouslySetInnerHTML={{ __html: txt }} />);
AlertEvents.emit(<Typography component="span" sx={styles} dangerouslySetInnerHTML={{ __html: txt }} />);
}
}