Rename profile card component and exports
cgen-e4178badfbad47e69d7386d3b5f6d6e7
This commit is contained in:
parent
5f9a74779a
commit
a5eb151100
1 changed files with 4 additions and 4 deletions
|
|
@ -45,7 +45,7 @@ interface ProfileCardProps {
|
||||||
profile: AethexUserProfile & { email?: string | null };
|
profile: AethexUserProfile & { email?: string | null };
|
||||||
}
|
}
|
||||||
|
|
||||||
const ProfileCard = ({ profile }: ProfileCardProps) => {
|
const DeveloperCard = ({ profile }: ProfileCardProps) => {
|
||||||
const realmStyle =
|
const realmStyle =
|
||||||
realmBadgeStyles[profile.user_type] || "bg-aethex-500 text-white";
|
realmBadgeStyles[profile.user_type] || "bg-aethex-500 text-white";
|
||||||
const isGodMode = (profile.level ?? 1) >= 100;
|
const isGodMode = (profile.level ?? 1) >= 100;
|
||||||
|
|
@ -133,7 +133,7 @@ const ProfileCard = ({ profile }: ProfileCardProps) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const ProfilesDirectory = () => {
|
const DevelopersDirectory = () => {
|
||||||
const [profiles, setProfiles] = useState<AethexUserProfile[]>([]);
|
const [profiles, setProfiles] = useState<AethexUserProfile[]>([]);
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
const [search, setSearch] = useState("");
|
const [search, setSearch] = useState("");
|
||||||
|
|
@ -249,7 +249,7 @@ const ProfilesDirectory = () => {
|
||||||
) : (
|
) : (
|
||||||
<div className="grid gap-6 sm:grid-cols-2 xl:grid-cols-3">
|
<div className="grid gap-6 sm:grid-cols-2 xl:grid-cols-3">
|
||||||
{filteredProfiles.map((profile) => (
|
{filteredProfiles.map((profile) => (
|
||||||
<ProfileCard key={profile.id} profile={profile as any} />
|
<DeveloperCard key={profile.id} profile={profile as any} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
@ -259,4 +259,4 @@ const ProfilesDirectory = () => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ProfilesDirectory;
|
export default DevelopersDirectory;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue