chore: fixed syntax

This commit is contained in:
plebeius.eth
2023-10-04 15:10:35 +02:00
parent 053ec57bc4
commit 31eb5f4194
2 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -72,7 +72,7 @@ const TwitterEmbed = ({ parsedUrl }) => {
allow='accelerometer; encrypted-media; gyroscope; picture-in-picture; web-share' allow='accelerometer; encrypted-media; gyroscope; picture-in-picture; web-share'
title={parsedUrl.href} title={parsedUrl.href}
srcdoc={` srcdoc={`
<blockquote class="twitter-tweet" data-theme="dark"> <blockquote className="twitter-tweet" data-theme="dark">
<a href="${parsedUrl.href.replace('x.com', 'twitter.com')}"></a> <a href="${parsedUrl.href.replace('x.com', 'twitter.com')}"></a>
</blockquote> </blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
@@ -101,7 +101,7 @@ const RedditEmbed = ({ parsedUrl }) => {
margin: 0!important; margin: 0!important;
} }
</style> </style>
<blockquote class="reddit-embed-bq" style="height:240px" data-embed-theme="dark"> <blockquote className="reddit-embed-bq" style="height:240px" data-embed-theme="dark">
<a href="${parsedUrl.href}"></a> <a href="${parsedUrl.href}"></a>
</blockquote> </blockquote>
<script async src="https://embed.reddit.com/widgets.js" charset="UTF-8"></script> <script async src="https://embed.reddit.com/widgets.js" charset="UTF-8"></script>
@@ -152,7 +152,7 @@ const TiktokEmbed = ({ parsedUrl }) => {
allow='accelerometer; encrypted-media; gyroscope; picture-in-picture; web-share' allow='accelerometer; encrypted-media; gyroscope; picture-in-picture; web-share'
title={parsedUrl.href} title={parsedUrl.href}
srcdoc={` srcdoc={`
<blockquote class="tiktok-embed" data-video-id="${videoId}"> <blockquote className="tiktok-embed" data-video-id="${videoId}">
<a></a> <a></a>
</blockquote> </blockquote>
<script async src="https://www.tiktok.com/embed.js"></script> <script async src="https://www.tiktok.com/embed.js"></script>
@@ -177,7 +177,7 @@ const InstagramEmbed = ({ parsedUrl }) => {
allow='accelerometer; encrypted-media; gyroscope; picture-in-picture; web-share' allow='accelerometer; encrypted-media; gyroscope; picture-in-picture; web-share'
title={parsedUrl.href} title={parsedUrl.href}
srcdoc={` srcdoc={`
<blockquote class="instagram-media"> <blockquote className="instagram-media">
<a href="https://www.instagram.com/p/${id}/"></a> <a href="https://www.instagram.com/p/${id}/"></a>
</blockquote> </blockquote>
<script async src="//www.instagram.com/embed.js"></script> <script async src="//www.instagram.com/embed.js"></script>
+8 -8
View File
@@ -100,9 +100,9 @@ const Home = () => {
}); });
const sfwListCids = Object.values(subplebbitToCid) const sfwListCids = Object.values(subplebbitToCid)
.sort((a, b) => b.timestamp - a.timestamp) // Sort by timestamp .sort((a, b) => b.timestamp - a.timestamp)
.map((item) => item.cid) // Extract cids .map((item) => item.cid)
.slice(0, 8); // Limit to 8 cids .slice(0, 8);
const account = useAccount(); const account = useAccount();
const navigate = useNavigate(); const navigate = useNavigate();
@@ -201,8 +201,8 @@ const Home = () => {
<div className='boxbar'> <div className='boxbar'>
<h2>Boards</h2> <h2>Boards</h2>
</div> </div>
<div class='boxcontent'> <div className='boxcontent'>
<div class='column'> <div className='column'>
<h3 style={{ textDecoration: 'underline', display: 'inline' }}> <h3 style={{ textDecoration: 'underline', display: 'inline' }}>
<a <a
href='https://github.com/plebbit/temporary-default-subplebbits' href='https://github.com/plebbit/temporary-default-subplebbits'
@@ -248,7 +248,7 @@ const Home = () => {
)} )}
</ul> </ul>
</div> </div>
<div class='column'> <div className='column'>
<h3 style={{ textDecoration: 'underline', display: 'inline' }}> <h3 style={{ textDecoration: 'underline', display: 'inline' }}>
<a <a
href='https://github.com/plebbit/temporary-default-subplebbits' href='https://github.com/plebbit/temporary-default-subplebbits'
@@ -285,7 +285,7 @@ const Home = () => {
)} )}
</ul> </ul>
</div> </div>
<div class='column'> <div className='column'>
<h3 style={{ textDecoration: 'underline', display: 'inline' }}>Subscriptions</h3> <h3 style={{ textDecoration: 'underline', display: 'inline' }}>Subscriptions</h3>
&nbsp; &nbsp;
<Link <Link
@@ -324,7 +324,7 @@ const Home = () => {
)} )}
</ul> </ul>
</div> </div>
<div class='column'> <div className='column'>
<h3 style={{ textDecoration: 'underline', display: 'inline' }}>Moderating</h3> <h3 style={{ textDecoration: 'underline', display: 'inline' }}>Moderating</h3>
<ul> <ul>
{!isElectron ? ( {!isElectron ? (