Skip to content

Commit

Permalink
make id const
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier-Charles committed Apr 3, 2024
1 parent d4eaae6 commit 07acca3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import { EditProfileModal } from "./EditProfileModal";

const { IS_DEV } = CONFIG;

const INSTALL_OPTION_ID = "install";

const NonAuthenticatedSection = () => {
return (
<div className="flex flex-col flex-start w-full items-start mb-4">
Expand Down Expand Up @@ -163,7 +165,7 @@ const UserSettings: FC<IUserSettings> = ({
...(isInstallable
? [
{
id: "install",
id: INSTALL_OPTION_ID,
icon: Logoday,
title: "Install Alphaday",
subtext: "Get the app on your device",
Expand Down Expand Up @@ -220,7 +222,7 @@ const UserSettings: FC<IUserSettings> = ({
isAuthenticated
? "text-primary"
: "text-primaryVariant100",
item.id === "install" &&
item.id === INSTALL_OPTION_ID &&
"[&_path]:!fill-secondaryOrange"
)}
>
Expand All @@ -230,7 +232,7 @@ const UserSettings: FC<IUserSettings> = ({
<span
className={twMerge(
"block fontGroup-highlightSemi",
item.id === "install" &&
item.id === INSTALL_OPTION_ID &&
"text-secondaryOrange"
)}
>
Expand Down

0 comments on commit 07acca3

Please sign in to comment.