mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-11-08 10:05:43 +00:00
feat: finalize pages
This commit is contained in:
22
frontend/src/components/ui/code.tsx
Normal file
22
frontend/src/components/ui/code.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
interface CodeProps extends React.ComponentPropsWithoutRef<"code"> {
|
||||
children?: React.ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
function Code({ children, className, ...props }: CodeProps) {
|
||||
return (
|
||||
<code
|
||||
className={twMerge(
|
||||
"relative rounded bg-muted px-[0.2rem] py-[0.1rem] font-mono text-sm font-semibold",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</code>
|
||||
);
|
||||
}
|
||||
|
||||
export { Code };
|
||||
@@ -16,7 +16,7 @@ export const OAuthButton = (props: Props) => {
|
||||
return (
|
||||
<Button
|
||||
onClick={onClick}
|
||||
className={twMerge("rounded-full", className)}
|
||||
className={twMerge("rounded-md", className)}
|
||||
variant="outline"
|
||||
{...rest}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user