mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-30 22:25:58 -04:00
Migrate to app router (#2254)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import Code from "../Code";
|
||||
import { styled } from "../../lib/styles/stitches.config";
|
||||
import clsx from "clsx";
|
||||
import type { ComponentPropsWithoutRef } from "react";
|
||||
|
||||
const CodeInline = styled(Code, {
|
||||
padding: "0.175em 0.3em",
|
||||
fontSize: "0.925em",
|
||||
pageBreakInside: "avoid",
|
||||
});
|
||||
import styles from "./CodeInline.module.css";
|
||||
|
||||
const CodeInline = ({ className, ...rest }: ComponentPropsWithoutRef<"code">) => (
|
||||
<code className={clsx(styles.codeInline, className)} {...rest} />
|
||||
);
|
||||
|
||||
export default CodeInline;
|
||||
|
||||
Reference in New Issue
Block a user