pl-fe: show notifications page column title
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -62,6 +62,6 @@ const SidebarNavigationLink = React.memo(React.forwardRef((props: ISidebarNaviga
|
||||
<p>{text}</p>
|
||||
</NavLink>
|
||||
);
|
||||
}), (prevProps, nextProps) => prevProps.count === nextProps.count && prevProps.shrink === nextProps.shrink);
|
||||
}), (prevProps, nextProps) => prevProps.count === nextProps.count);
|
||||
|
||||
export { SidebarNavigationLink as default };
|
||||
|
||||
@ -30,7 +30,7 @@ interface IPopover {
|
||||
/** Add a class to the reference (trigger) element */
|
||||
referenceElementClassName?: string;
|
||||
offsetOptions?: OffsetOptions;
|
||||
placements?: Placement;
|
||||
placements?: Array<Placement>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -3,22 +3,16 @@ import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import NotificationsColumn from 'pl-fe/columns/notifications';
|
||||
import Column from 'pl-fe/components/ui/column';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
import { useSettings } from 'pl-fe/stores/settings';
|
||||
|
||||
const messages = defineMessages({
|
||||
title: { id: 'column.notifications', defaultMessage: 'Notifications' },
|
||||
});
|
||||
|
||||
const NotificationsPage = () => {
|
||||
const features = useFeatures();
|
||||
const intl = useIntl();
|
||||
const settings = useSettings();
|
||||
|
||||
const showFilterBar = (features.notificationsExcludeTypes || features.notificationsIncludeTypes) && settings.notifications.quickFilter.show;
|
||||
|
||||
return (
|
||||
<Column label={intl.formatMessage(messages.title)} withHeader={!showFilterBar}>
|
||||
<Column label={intl.formatMessage(messages.title)}>
|
||||
<NotificationsColumn />
|
||||
</Column>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user