|
|
@@ -6,16 +6,23 @@ import { UserPicture } from '@growi/ui/dist/components/User/UserPicture';
|
|
|
|
|
|
import { IPageHasId } from '~/interfaces/page';
|
|
|
|
|
|
+import styles from './PageList.module.scss';
|
|
|
|
|
|
type PageListItemSProps = {
|
|
|
page: IPageHasId,
|
|
|
noLink?: boolean,
|
|
|
pageTitle?: string
|
|
|
+ isBookmarkItem?: boolean,
|
|
|
}
|
|
|
|
|
|
export const PageListItemS = (props: PageListItemSProps): JSX.Element => {
|
|
|
|
|
|
- const { page, noLink = false, pageTitle } = props;
|
|
|
+ const {
|
|
|
+ page,
|
|
|
+ noLink = false,
|
|
|
+ pageTitle,
|
|
|
+ isBookmarkItem = false,
|
|
|
+ } = props;
|
|
|
|
|
|
const path = pageTitle != null ? pageTitle : page.path;
|
|
|
|
|
|
@@ -24,6 +31,16 @@ export const PageListItemS = (props: PageListItemSProps): JSX.Element => {
|
|
|
pagePathElement = <a className="text-break" href={page.path}>{pagePathElement}</a>;
|
|
|
}
|
|
|
|
|
|
+ if (isBookmarkItem) {
|
|
|
+ pagePathElement = (
|
|
|
+ <div className={`${styles['page-list']}`}>
|
|
|
+ <div className="mx-2 path-element">
|
|
|
+ <a className="text-break" href={page.path}>{pagePathElement}</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
return (
|
|
|
<>
|
|
|
<UserPicture user={page.lastUpdateUser} noLink={noLink} />
|