mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-23 05:01:49 +10:00
fix: handle edge case to display LinkedIn logo when used in Profiles
This commit is contained in:
19
apps/client/src/components/brand-icon.tsx
Normal file
19
apps/client/src/components/brand-icon.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import { cn } from "@reactive-resume/utils";
|
||||
|
||||
type BrandIconProps = {
|
||||
slug: string;
|
||||
};
|
||||
|
||||
export const BrandIcon = ({ slug }: BrandIconProps) => {
|
||||
if (slug === "linkedin") {
|
||||
return (
|
||||
<img
|
||||
alt="LinkedIn"
|
||||
className="size-5"
|
||||
src={`${window.location.origin}/support-logos/linkedin.svg`}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
return <i className={cn("si si--color text-[1.25rem]", `si-${slug}`)} />;
|
||||
};
|
||||
Reference in New Issue
Block a user