Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Frens of Push Details #884

Merged
merged 10 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install and Build
if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed
run: |
yarn install --frozen-lockfile
yarn install
yarn build:pr:preview

# Configure GitHub Pages for deployment
Expand Down
Binary file not shown.
68 changes: 0 additions & 68 deletions blog/2023-02-09-superfluid-taps-push-to-update/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const envPresets = {
},
preview: {
REACT_APP_DEPLOY_ENV: 'PREVIEW',
REACT_APP_PUBLIC_URL: `${process.env.REACT_APP_BASE_URL}${getPreviewBasePath()}`,
REACT_APP_PUBLIC_URL: `${process.env.REACT_APP_PUBLIC_URL}${getPreviewBasePath()}`,
},
};

Expand Down
3 changes: 1 addition & 2 deletions src/components/ChannelItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
/* eslint-disable react/prop-types */
/* eslint-disable */

// React + Web3 Essentials
Expand Down Expand Up @@ -231,7 +230,7 @@ const ChannelType = styled.div`
width: fit-content;
height: fit-content;
padding: 7px 14px;
margin-top: auto;
margin-top: 7px;

display: flex;
align-items: center;
Expand Down
20 changes: 10 additions & 10 deletions src/components/Home/RecentBlogPosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ const RecentBlogPosts = ({ recentPosts = [] }) => {
className='item-3'
onClick={() => {
window.open(
`${baseUrl}/blog/${postItem.metadata.frontMatter.slug}`,
`${baseUrl}/blog/${postItem?.metadata.frontMatter.slug}`,
'_self'
);
}}
alt={`Read blog post - ${postItem.metadata.frontMatter.title}`}
alt={`Read blog post - ${postItem?.metadata.frontMatter.title}`}
>
<postItem.Preview loading='lazy' />

Expand All @@ -51,16 +51,16 @@ const RecentBlogPosts = ({ recentPosts = [] }) => {
display={isTablet && 'none'}
>
<Date
date={postItem.Preview.metadata.date}
formattedDate={postItem.Preview.metadata.formattedDate}
date={postItem?.Preview?.metadata.date}
formattedDate={postItem?.Preview?.metadata.formattedDate}
mr={'3px'}
/>
{typeof postItem.Preview.metadata.readingTime !==
'undefined' && (
<>
<Spacer />
<ReadingTime
readingTime={postItem.Preview.metadata.readingTime}
readingTime={postItem?.Preview?.metadata.readingTime}
/>
</>
)}
Expand All @@ -74,10 +74,10 @@ const RecentBlogPosts = ({ recentPosts = [] }) => {
fontFamily='FK Grotesk Neue'
letterSpacing='normal'
>
{postItem.metadata.title}
{postItem?.metadata.title}
</H2>

<TextSpan>{postItem.metadata.frontMatter.text}</TextSpan>
<TextSpan>{postItem?.metadata.frontMatter.text}</TextSpan>
</BodyItem>
</BlogPostCardPrimary>
);
Expand All @@ -93,11 +93,11 @@ const RecentBlogPosts = ({ recentPosts = [] }) => {
className={`item-${index}`}
onClick={() => {
window.open(
`${baseUrl}/blog/${postItem.metadata.frontMatter.slug}`,
`${baseUrl}/blog/${postItem?.metadata.frontMatter.slug}`,
'_self'
);
}}
alt={`Read blog post - ${postItem.metadata.frontMatter.title}`}
alt={`Read blog post - ${postItem?.metadata.frontMatter.title}`}
>
<postItem.Preview loading='lazy' />
<TitleItem>
Expand All @@ -110,7 +110,7 @@ const RecentBlogPosts = ({ recentPosts = [] }) => {
fontFamily='FK Grotesk Neue'
letterSpacing='normal'
>
{postItem.metadata.title}
{postItem?.metadata.title}
</H2>
</TitleItem>
</BlogPostCardSecondary>
Expand Down
Loading
Loading