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:
parent
10d731e697
commit
9dc9aadf98
2 changed files with 6 additions and 5 deletions
|
@ -97,7 +97,6 @@ export const Component = () => {
|
|||
>
|
||||
<SimpleAlert
|
||||
open={isAlertOpen}
|
||||
title={''}
|
||||
text={globalize.translate('MetadataSettingChangeHelp')}
|
||||
onClose={onAlertClose}
|
||||
/>
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue