Skip to content

Commit

Permalink
changing names of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonidoo committed Sep 15, 2023
1 parent 069ec8a commit 769d921
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions assets/agenda/components/AgendaListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ class AgendaListItem extends React.Component<any, any> {
<div className="wire-articles__item__text">
{item.es_highlight && item.es_highlight
? (
description.split('\n').map((lineOfPlainTex: string, index: number) => {
description.split('\n').map((lineOfHTML: string, index: number) => {
return (
<p key={index}>
<span dangerouslySetInnerHTML={{__html: lineOfPlainTex}} />
<span dangerouslySetInnerHTML={{__html: lineOfHTML}} />
</p>
);
})
Expand Down
10 changes: 5 additions & 5 deletions assets/agenda/components/AgendaLongDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ export default function AgendaLongDescription({item, plan}: {item: any, plan: an

return (
<div className="wire-column__preview__text wire-column__preview__text--pre">
{description.split('\n').map((lineOfPlainTex: string, index: number) => {
return lineOfPlainTex[0] !== '<'
{description.split('\n').map((lineOfHTML: string, index: number) => {
return lineOfHTML[0] !== '<'
? (
<div>
{item.es_highlight
? (
<span dangerouslySetInnerHTML={{__html: lineOfPlainTex}} />
<span dangerouslySetInnerHTML={{__html: lineOfHTML}} />
)
: lineOfPlainTex
: lineOfHTML
}
</div>
)
: (
<div dangerouslySetInnerHTML={{__html: lineOfPlainTex}} key={index} />
<div dangerouslySetInnerHTML={{__html: lineOfHTML}} key={index} />
);
})}
</div>
Expand Down

0 comments on commit 769d921

Please sign in to comment.