|
|
@@ -4,7 +4,7 @@ import { pagePathUtils } from '@growi/core';
|
|
|
|
|
|
import { InAppNotification as IInAppNotification } from '../../interfaces/in-app-notification';
|
|
|
|
|
|
-const { path2name } = pagePathUtils;
|
|
|
+const { getPageTitle } = pagePathUtils;
|
|
|
|
|
|
interface Props {
|
|
|
notification: IInAppNotification
|
|
|
@@ -13,7 +13,7 @@ interface Props {
|
|
|
export const PagePath = (props: Props): JSX.Element => {
|
|
|
const { notification } = props;
|
|
|
const pagePath = notification.target.path;
|
|
|
- const shortPath = path2name(pagePath);
|
|
|
+ const shortPath = getPageTitle(pagePath);
|
|
|
const pathPrefix = pagePath.slice(0, -shortPath.length);
|
|
|
|
|
|
return (
|