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
|
<SimpleAlert
|
||||||
open={isAlertOpen}
|
open={isAlertOpen}
|
||||||
title={''}
|
|
||||||
text={globalize.translate('MetadataSettingChangeHelp')}
|
text={globalize.translate('MetadataSettingChangeHelp')}
|
||||||
onClose={onAlertClose}
|
onClose={onAlertClose}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -8,7 +8,7 @@ import globalize from 'lib/globalize';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
interface SimpleAlertDialog extends DialogProps {
|
interface SimpleAlertDialog extends DialogProps {
|
||||||
title: string;
|
title?: string;
|
||||||
text: string;
|
text: string;
|
||||||
onClose: () => void
|
onClose: () => void
|
||||||
};
|
};
|
||||||
|
@ -16,9 +16,11 @@ interface SimpleAlertDialog extends DialogProps {
|
||||||
const SimpleAlert = ({ open, title, text, onClose }: SimpleAlertDialog) => {
|
const SimpleAlert = ({ open, title, text, onClose }: SimpleAlertDialog) => {
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onClose={onClose}>
|
<Dialog open={open} onClose={onClose}>
|
||||||
|
{title && (
|
||||||
<DialogTitle>
|
<DialogTitle>
|
||||||
{title}
|
{title}
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
|
)}
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
{text}
|
{text}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue