Skip to content

Commit 889a106

Browse files
committed
Fix issues badly, need to work out why theme is empty
1 parent 03fa895 commit 889a106

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

theme/src/components/header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ function PrimerNavItems({siteMetadata, items, path, pathPrefix}) {
149149
<UnderlineNav aria-label="Main navigation" sx={{border: 'none'}}>
150150
{items.map((item, index) => {
151151
return (
152-
<UnderlineNav.Link
152+
<UnderlineNav.Item
153153
key={index}
154154
href={item.url}
155155
selected={item.url === siteMetadata.header.url + (pathPrefix || '') + (path || '')}
156156
sx={{fontSize: 2, lineHeight: 'condensed'}}
157157
>
158158
{item.title}
159-
</UnderlineNav.Link>
159+
</UnderlineNav.Item>
160160
)
161161
})}
162162
</UnderlineNav>

theme/src/components/live-code.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ function LiveCode({code, language, highlight, noinline, metastring}) {
106106
onChange={handleChange}
107107
theme={githubTheme}
108108
ignoreTabKey={true}
109-
padding={theme.space[3]}
109+
padding={theme?.space[3]}
110110
style={{
111-
fontFamily: theme.fonts.mono,
111+
fontFamily: theme?.fonts.mono,
112112
fontSize: '85%',
113-
borderBottomLeftRadius: theme.radii[2],
114-
borderBottomRightRadius: theme.radii[2],
113+
borderBottomLeftRadius: theme?.radii[2],
114+
borderBottomRightRadius: theme?.radii[2],
115115
border: '1px solid',
116116
borderTop: 0,
117-
borderColor: theme.colors.border.default,
117+
borderColor: theme?.colors.border.default,
118118
}}
119119
/>
120120
</LineHighlighter>

0 commit comments

Comments
 (0)