chore: codify React component style

This commit is contained in:
2026-08-25 15:33:20 +03:00
parent 268acdf2e1
commit d10e1dd182
65 changed files with 711 additions and 365 deletions
@@ -1,14 +1,16 @@
import { Avatar } from "@mantine/core";
import type { FC } from "react";
import { useState } from "react";
export function PositionLogo({
src,
label,
}: {
type PositionLogoProps = {
src: string | null;
label: string;
}) {
};
const PositionLogo: FC<PositionLogoProps> = (props) => {
const { src, label } = props;
const [failed, setFailed] = useState(false);
if (src && !failed)
return (
<Avatar
@@ -24,4 +26,6 @@ export function PositionLogo({
{(label.trim()[0] ?? "?").toUpperCase()}
</Avatar>
);
}
};
export { PositionLogo };