1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Make title optional for alert

This commit is contained in:
viown 2025-03-06 04:29:08 +03:00
parent 10d731e697
commit 9dc9aadf98
2 changed files with 6 additions and 5 deletions

View file

@ -97,7 +97,6 @@ export const Component = () => {
>
<SimpleAlert
open={isAlertOpen}
title={''}
text={globalize.translate('MetadataSettingChangeHelp')}
onClose={onAlertClose}
/>

View file

@ -8,7 +8,7 @@ import globalize from 'lib/globalize';
import React from 'react';
interface SimpleAlertDialog extends DialogProps {
title: string;
title?: string;
text: string;
onClose: () => void
};
@ -16,9 +16,11 @@ interface SimpleAlertDialog extends DialogProps {
const SimpleAlert = ({ open, title, text, onClose }: SimpleAlertDialog) => {
return (
<Dialog open={open} onClose={onClose}>
{title && (
<DialogTitle>
{title}
</DialogTitle>
)}
<DialogContent>
<DialogContentText>
{text}