Skip to content

Commit

Permalink
kekw this wasnt saved
Browse files Browse the repository at this point in the history
  • Loading branch information
yofukashino committed Aug 30, 2024
1 parent 8e2a5f4 commit 7da8a18
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/Components/PlatformIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ interface Props {
SessionStore: SessionStore;
PresenceStore: PresenceStore;
useStatusFillColor: (status: string, desaturate?: boolean) => string;
profileBadge24: string;
user: User;
}

Expand All @@ -36,15 +35,8 @@ const Icons = {
};

function TheRealPlatformIndicator(props: PropsWithUser): React.ReactElement | null {
const {
user,
currentUser,
SessionStore,
PresenceStore,
useStateFromStore,
profileBadge24,
useStatusFillColor,
} = props;
const { user, currentUser, SessionStore, PresenceStore, useStateFromStore, useStatusFillColor } =
props;

const [icons, setIcons] = React.useState<any[]>([]);
const statuses = useStateFromStore(
Expand All @@ -67,7 +59,7 @@ function TheRealPlatformIndicator(props: PropsWithUser): React.ReactElement | nu
} - ${status[0].toUpperCase() + status.slice(1)}`;
const color = useStatusFillColor(status);
const Icon = Icons[platform as Platforms] ?? Icons.desktop;
return <Icon color={`${color}`} tooltip={tooltip} className={profileBadge24} />;
return <Icon color={`${color}`} tooltip={tooltip} />;
},
);
setIcons(icons);
Expand Down

0 comments on commit 7da8a18

Please sign in to comment.