Skip to content

Commit f119c51

Browse files
committed
fix code style
1 parent 265f98b commit f119c51

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

util/processOrg.tsx

+11-14
Original file line numberDiff line numberDiff line change
@@ -197,20 +197,17 @@ export const ProcessedOrg = (props: ProcessedOrgProps) => {
197197
p: ({ children }) => {
198198
return <p lang="en">{children as ReactNode}</p>
199199
},
200-
code: ({ className, children }) => {
201-
if (className === 'inline-code') {
202-
return <chakra.code
203-
px={1}
204-
py={0.5}
205-
rounded="sm"
206-
fontSize="xs"
207-
color="gray.800"
208-
bgColor="gray.300"
209-
>
210-
{children}
211-
</chakra.code>
212-
}
213-
return children;
200+
code: ({ children }) => {
201+
return <chakra.code
202+
px={1}
203+
py={0.5}
204+
rounded="sm"
205+
fontSize="xs"
206+
color="gray.800"
207+
bgColor="gray.300"
208+
>
209+
{children}
210+
</chakra.code>;
214211
},
215212
},
216213
})

0 commit comments

Comments
 (0)