Skip to content

Commit

Permalink
refactor: Improve MetaDetails component with TypeScript type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Mar 6, 2025
1 parent 20fa163 commit 783077b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apps/web/src/components/Account/MetaDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import type { ReactNode } from "react";
import type { FC, ReactNode } from "react";

const MetaDetails = ({
children,
icon
}: {
interface MetaDetailsProps {
children: ReactNode;
icon: ReactNode;
}) => (
}

const MetaDetails: FC<MetaDetailsProps> = ({ children, icon }) => (
<div className="flex items-center gap-2">
{icon}
<div className="truncate text-md">{children}</div>
Expand Down

0 comments on commit 783077b

Please sign in to comment.