Skip to content

Commit

Permalink
[New Feature] Stickers #131
Browse files Browse the repository at this point in the history
  • Loading branch information
saltrafael committed Nov 3, 2021
1 parent 7b621b7 commit 375ecf8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ui/page/home/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,36 @@ function HomePage(props: Props) {
doFetchActiveLivestreams();
}, []);

const addItem = (title) => {
const idIndex = title.lastIndexOf('#');
if (idIndex === -1) {
return <li>{title}</li>;
}

return (
<li>
<Button
button="link"
label={title}
href={`https://github.com/OdyseeTeam/odysee-frontend/issues/${title.substring(idIndex + 1)}`}
/>
</li>
);
};

return (
<Page fullWidthPage>
{/* <div className="notice-message--loud">
<h1 className="section__title">PRs in this dev instance</h1>
<p className="section__subtitle">
<ul>
{addItem('')}
</ul>
</p>
</div>
<br /> */}

{!SIMPLE_SITE && (authenticated || !IS_WEB) && !subscribedChannels.length && (
<div className="notice-message">
<h1 className="section__title">
Expand Down

0 comments on commit 375ecf8

Please sign in to comment.