Skip to content

Commit 101fc06

Browse files
authored
Allow html tags in maintenance banner (#6267)
1 parent c4aee11 commit 101fc06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/javascript/App.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ export default function App() {
4444
// useEffect hook for running notify maintenance banner on page load
4545
useEffect(() => {
4646
if (maintenanceBanner.data) {
47-
const toastId = toast.info(maintenanceBanner.data, {
47+
const toastId = toast.info(<span dangerouslySetInnerHTML={{ __html: maintenanceBanner.data }} />, {
4848
position: 'top-center',
4949
autoClose: false,
5050
hideProgressBar: true,
51-
closeOnClick: true,
51+
closeOnClick: false,
5252
pauseOnHover: true,
5353
draggable: true,
5454
progress: undefined,

0 commit comments

Comments
 (0)