Skip to content

Commit

Permalink
Rename a renderer to say it's a renderer #3229
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcmoulton committed May 8, 2024
1 parent bb62ba2 commit 4ab86fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/read-side/html-pages/groups-page/render-groups.ts
Expand Up @@ -3,10 +3,10 @@ import { renderListItems } from '../../../shared-components/render-list-items';
import { supplementaryInfo } from '../../../shared-components/supplementary-info';
import { HtmlFragment, toHtmlFragment } from '../../../types/html-fragment';
import { renderListOfCards } from '../shared-components/list-of-cards';
import { supplementaryCard } from '../shared-components/supplementary-card';
import { renderSupplementaryCard } from '../shared-components/supplementary-card';

const supplementaryItems = [
supplementaryCard(
renderSupplementaryCard(
'Share your insights',
toHtmlFragment(`
<p>Join the growing number of journals, societies and preprint review clubs that are making Sciety their home.</p>
Expand Down
Expand Up @@ -7,11 +7,11 @@ import { supplementaryInfo } from '../../../../shared-components/supplementary-i
import { HtmlFragment, toHtmlFragment } from '../../../../types/html-fragment';
import { renderListOfCards } from '../../shared-components/list-of-cards';
import { renderLegacyPaginationControls } from '../../shared-components/pagination';
import { supplementaryCard } from '../../shared-components/supplementary-card';
import { renderSupplementaryCard } from '../../shared-components/supplementary-card';
import { ViewModel } from '../view-model';

const supplementaryItems = [
supplementaryCard(
renderSupplementaryCard(
'What is the Sciety feed?',
toHtmlFragment(`
<p>
Expand Down
@@ -1 +1 @@
export { supplementaryCard } from './supplementary-card';
export { renderSupplementaryCard } from './render-supplementary-card';
@@ -1,6 +1,6 @@
import { HtmlFragment, toHtmlFragment } from '../../../../types/html-fragment';

export const supplementaryCard = (title: string, content: HtmlFragment): HtmlFragment => toHtmlFragment(`
export const renderSupplementaryCard = (title: string, content: HtmlFragment): HtmlFragment => toHtmlFragment(`
<article class="supplementary-card">
<h2 class="supplementary-card__title">${title}</h2>
${content}
Expand Down

0 comments on commit 4ab86fa

Please sign in to comment.