mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-07 13:02:36 +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 =>
|
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(() =>
|
const visitUrl = useCallback(() =>
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,7 @@ export interface NotificationEventAlertViewProps extends LayoutNotificationAlert
|
|||||||
|
|
||||||
export const NotificationEventAlertView: FC<NotificationEventAlertViewProps> = props =>
|
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(() =>
|
const visitUrl = useCallback(() =>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user