Skip to content

Commit

Permalink
Encapsulate renderListPageLinkHref within html-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiosironi committed May 15, 2024
1 parent 02f420c commit 5852c14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as O from 'fp-ts/Option';
import { pipe } from 'fp-ts/function';
import { Dependencies } from './dependencies';
import { List } from '../../../../read-models/lists';
import { renderListPageLinkHref } from '../../../../shared-components/render-list-page-link-href';
import { constructUserAvatarSrc } from '../../../paths';
import { renderListPageLinkHref } from '../../shared-components/render-list-page-link-href';

type ListWithAddedOwnershipInformation = {
name: List['name'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { htmlEscape } from 'escape-goat';
import * as O from 'fp-ts/Option';
import { pipe } from 'fp-ts/function';
import { safelyRenderRawUserInput } from '../../../../shared-components/raw-user-input-renderers';
import { renderListPageLinkHref } from '../../../../shared-components/render-list-page-link-href';
import { HtmlFragment, toHtmlFragment } from '../../../../types/html-fragment';
import { ListId } from '../../../../types/list-id';
import { RawUserInput } from '../../../raw-user-input';
import { templateDate } from '../date';
import { renderCountWithDescriptor } from '../render-count-with-descriptor';
import { renderListPageLinkHref } from '../render-list-page-link-href';

type Curator = {
avatarSrc: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { ListId } from '../types/list-id';
import { ListId } from '../../../types/list-id';

export const renderListPageLinkHref = (listId: ListId): string => (`/lists/${listId}`);

0 comments on commit 5852c14

Please sign in to comment.