Skip to content

Commit a04b2d1

Browse files
authored
Merge branch 'dev' into fix-translated-images-link
2 parents 2ea6179 + 453e847 commit a04b2d1

File tree

6 files changed

+40
-51
lines changed

6 files changed

+40
-51
lines changed

src/components/PageHero.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ const PageHero = ({
9797
{subtitle}
9898
</Text>
9999
{buttons && (
100-
// FIXME: remove the `ul` override once removed the corresponding
101-
// global styles in `src/@chakra-ui/gatsby-plugin/styles.ts`
102100
<Wrap spacing={2} overflow="visible" sx={{ ul: { m: 0 } }}>
103101
{buttons.map((button, idx) => {
104102
if (isButtonLink(button)) {

src/components/SideNav.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ export interface SideNavProps {
144144
// TODO set tree state based on if current path is a child
145145
// of the given parent. Currently all `path` items default to open
146146
// and they only collapse when clicked on.
147-
// e.g. solution: https://github.com/hasura/gatsby-gitbook-starter/blob/5c165af40e48fc55eb06b45b95c84eb64b17ed32/src/components/sidebar/tree.js
148147
const SideNav = ({ path }: SideNavProps) => {
149148
const { t } = useTranslation("page-developers-docs")
150149

src/global.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ declare global {
1414
GITHUB_TOKEN: string
1515
ALGOLIA_ADMIN_KEY: string
1616
ETHERSCAN_API_KEY: string
17-
GATSBY_ALGOLIA_APP_ID: string
18-
GATSBY_ALGOLIA_SEARCH_KEY: string
19-
GATSBY_GITHUB_TOKEN_READ_ONLY: string
20-
GATSBY_FUNCTIONS_PATH: string
2117
CROWDIN_API_KEY: string
2218
}
2319
}

src/layouts/Roadmap.tsx

Lines changed: 40 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -141,52 +141,50 @@ export const RoadmapLayout: React.FC<IProps> = ({
141141
/>
142142
) : (
143143
<HeroContainer>
144-
<TitleCard>
145-
{/* TODO: Double check this slug works */}
146-
<Breadcrumbs slug={slug} mb="8" />
147-
<Title>{frontmatter.title}</Title>
148-
<OldText>{frontmatter.description}</OldText>
149-
{frontmatter?.buttons && (
150-
// FIXME: remove the `ul` override once removed the corresponding
151-
// global styles in `src/@chakra-ui/gatsby-plugin/styles.ts`
152-
<Wrap spacing={2} marginBottom={4} sx={{ ul: { m: 0 } }}>
153-
{frontmatter.buttons.map((button, idx) => {
154-
if (button?.to) {
155-
return (
156-
<WrapItem key={idx}>
157-
<ButtonLink variant={button?.variant} to={button?.to}>
158-
{button.label}
159-
</ButtonLink>
160-
</WrapItem>
161-
)
162-
}
144+
<TitleCard>
145+
{/* TODO: Double check this slug works */}
146+
<Breadcrumbs slug={slug} mb="8" />
147+
<Title>{frontmatter.title}</Title>
148+
<OldText>{frontmatter.description}</OldText>
149+
{frontmatter?.buttons && (
150+
<Wrap spacing={2} marginBottom={4} sx={{ ul: { m: 0 } }}>
151+
{frontmatter.buttons.map((button, idx) => {
152+
if (button?.to) {
163153
return (
164154
<WrapItem key={idx}>
165-
<Button variant={button?.variant} toId={button?.toId}>
166-
{button?.label}
167-
</Button>
155+
<ButtonLink variant={button?.variant} to={button?.to}>
156+
{button.label}
157+
</ButtonLink>
168158
</WrapItem>
169159
)
170-
})}
171-
</Wrap>
172-
)}
173-
<TableOfContents
174-
position="relative"
175-
zIndex="2"
176-
items={tocItems}
177-
isMobile
178-
/>
179-
</TitleCard>
180-
<Center>
181-
<Image
182-
src={frontmatter.image}
183-
alt={frontmatter.alt ?? ""}
184-
style={{ objectFit: "contain" }}
185-
width={1504}
186-
height={345}
187-
priority
188-
/>
189-
</Center>
160+
}
161+
return (
162+
<WrapItem key={idx}>
163+
<Button variant={button?.variant} toId={button?.toId}>
164+
{button?.label}
165+
</Button>
166+
</WrapItem>
167+
)
168+
})}
169+
</Wrap>
170+
)}
171+
<TableOfContents
172+
position="relative"
173+
zIndex="2"
174+
items={tocItems}
175+
isMobile
176+
/>
177+
</TitleCard>
178+
<Center>
179+
<Image
180+
src={frontmatter.image}
181+
alt={frontmatter.alt ?? ""}
182+
style={{ objectFit: "contain" }}
183+
width={1504}
184+
height={345}
185+
priority
186+
/>
187+
</Center>
190188
</HeroContainer>
191189
)}
192190
<Page>

src/lib/utils/url.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export const isPdf = (href: string): boolean => href.endsWith(".pdf")
1717
export const sanitizeHitUrl = (url: string): string =>
1818
url
1919
.replace(/^https?:\/\/[^\/]+(?=\/)/, "")
20-
.replace("#gatsby-focus-wrapper", "")
2120
.replace("#main-content", "")
2221
.replace("#content", "")
2322
.replace("#top", "")

src/pages/bug-bounty.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,6 @@ const BugBountiesPage = () => {
747747
<Translation id="page-bug-bounty:bug-bounty-faq-q1-contentPreview" />
748748
}
749749
>
750-
{/* TODO: Check <code> styling compared to Gatsby repo */}
751750
<Text>
752751
<Translation id="page-bug-bounty:bug-bounty-faq-q1-content-1" />
753752
</Text>

0 commit comments

Comments
 (0)