Skip to content

Commit

Permalink
Cleanup unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
djfarrelly committed Nov 1, 2023
1 parent 20c3435 commit 9d4b888
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion pages/docs/platform/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { GuideGrid, Guide } from 'src/shared/Docs/Guides'

Learn how to use the Inngest platform

<GuideGrid cols={3}>
<GuideGrid cols={4}>

<Guide
href="/docs/deploy"
Expand Down
2 changes: 1 addition & 1 deletion shared/Docs/Guides.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function Guide(guide: {
export function GuideGrid({ cols = 4, children }) {
return (
<div
className={`not-prose mt-4 grid grid-cols-1 gap-8 border-t border-slate-900/5 pt-10 dark:border-white/5
className={`xl:max-w-none not-prose mt-4 grid grid-cols-1 gap-8 border-t border-slate-900/5 pt-10 dark:border-white/5
sm:grid-cols-2 xl:grid-cols-${cols}`}
>
{children}
Expand Down
4 changes: 2 additions & 2 deletions shared/Docs/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function NavLink({
}) {
return (
<Link
href={`${BASE_DIR}${href}`}
href={href}
aria-current={active ? "page" : undefined}
className={clsx(
"flex justify-between gap-2 py-1 pr-3 text-sm transition",
Expand Down Expand Up @@ -255,7 +255,7 @@ export function Navigation(props) {
return (
<nav {...props}>
{isNested && (
<NavLink href="/" className="pl-0 text-xs uppercase font-mono">
<NavLink href={BASE_DIR} className="pl-0 text-xs uppercase font-mono">
← Back to docs home
</NavLink>
)}
Expand Down
2 changes: 1 addition & 1 deletion shared/Docs/Resources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export function Resources() {
export function ResourceGrid({ cols = 4, children }) {
return (
<div
className={`not-prose mt-4 grid grid-cols-1 gap-8 border-t border-slate-900/5 pt-10 dark:border-white/5
className={`xl:max-w-none not-prose mt-4 grid grid-cols-1 gap-8 border-t border-slate-900/5 pt-10 dark:border-white/5
sm:grid-cols-${cols >= 2 ? 2 : cols} xl:grid-cols-${cols}`}
>
{children}
Expand Down
Loading

0 comments on commit 9d4b888

Please sign in to comment.