Добавлены якори
This commit is contained in:
parent
8203561dd4
commit
3f074afcde
2 changed files with 8 additions and 2 deletions
|
|
@ -14,9 +14,15 @@ export const IssuesListBoard = observer((props: Props): JSX.Element => {
|
|||
<IssuesListCardNs.IssuesListCard store={issue} key={issue.id}/>
|
||||
);
|
||||
});
|
||||
let title: JSX.Element;
|
||||
if (props.store.metainfo.url) {
|
||||
title = <a href={props.store.metainfo.url}>{props.store.metainfo.title}</a>;
|
||||
} else {
|
||||
title = <>{props.store.metainfo.title}</>;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<h1 id={props.store.metainfo.title}>{props.store.metainfo.title} <a href={`#${props.store.metainfo.title}`}>#</a></h1>
|
||||
<h1 id={props.store.metainfo.title}>{title} <a href={`#${props.store.metainfo.title}`}>#</a></h1>
|
||||
<div className={Css.listContainer}>
|
||||
{list}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export const KanbanBoard = observer((props: Props) => {
|
|||
}
|
||||
return (
|
||||
<>
|
||||
<h1 id={props.store.metainfo.title}>{title}</h1>
|
||||
<h1 id={props.store.metainfo.title}>{title} <a href={`#${props.store.metainfo.title}`}>#</a></h1>
|
||||
<div className={KanbanBoardCss.kanbanContainer}>
|
||||
{columns}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue