mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-18 21:36:27 +01:00
Fix alerts title
This commit is contained in:
parent
eadd1290f4
commit
78d13a7571
@ -9,7 +9,7 @@ interface NotificationDefaultAlertViewProps extends LayoutNotificationAlertViewP
|
||||
|
||||
export const NotificationDefaultAlertView: FC<NotificationDefaultAlertViewProps> = props =>
|
||||
{
|
||||
const { item = null, title = (props.title || ''), close = null, ...rest } = props;
|
||||
const { item = null, title = ((props.item && props.item.title) || ''), close = null, ...rest } = props;
|
||||
|
||||
const visitUrl = useCallback(() =>
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ export interface NotificationEventAlertViewProps extends LayoutNotificationAlert
|
||||
|
||||
export const NotificationEventAlertView: FC<NotificationEventAlertViewProps> = props =>
|
||||
{
|
||||
const { item = null, title = (props.title || ''), close = null, ...rest } = props;
|
||||
const { item = null, title = ((props.item && props.item.title) || ''), close = null, ...rest } = props;
|
||||
|
||||
const visitUrl = useCallback(() =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user