- Added linting and type-checking scripts to package.json for api, web, and ui packages. - Updated ESLint configuration to ignore specific directories and added global window variable. - Modified TypeScript configuration for ui package to exclude turbo generators. - Refactored Button, Card, and Code components to use props for better readability and consistency.
8 lines
211 B
TypeScript
8 lines
211 B
TypeScript
import { type JSX } from 'solid-js/jsx-runtime';
|
|
|
|
export function Code(props: {
|
|
children: JSX.Element;
|
|
className?: string;
|
|
}): JSX.Element {
|
|
return <code class={props.className}>{props.children}</code>;
|
|
}
|