Skip to content

Commit

Permalink
fix(web): ESLint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Nov 5, 2023
1 parent 1d5ef87 commit ddf165c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frontend/web/app/dashboard/services/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ const ServiceLine = ({
<li className="list-item" key={action.id}>
<p className="text-md font-medium">
{
t(("areaTranslations." + action.id).replace(/-/g, "_")) === (("areaTranslations." + action.id).replace(/-/g, "_"))
t((`areaTranslations.${ action.id}`).replace(/-/g, "_")) === ((`areaTranslations.${ action.id}`).replace(/-/g, "_"))
? action.id
: t(("areaTranslations." + action.id).replace(/-/g, "_"))}
: t((`areaTranslations.${ action.id}`).replace(/-/g, "_"))}
</p>
<p className="text-sm">
{
t(("areaTranslations." + action.id + "_sub").replace(/-/g, "_")) === (("areaTranslations." + action.id + "_sub").replace(/-/g, "_"))
t((`areaTranslations.${ action.id }_sub`).replace(/-/g, "_")) === ((`areaTranslations.${ action.id }_sub`).replace(/-/g, "_"))
? action.description
: t(("areaTranslations." + action.id + "_sub").replace(/-/g, "_"))}
: t((`areaTranslations.${ action.id }_sub`).replace(/-/g, "_"))}
</p>
</li>
))}
Expand All @@ -80,15 +80,15 @@ const ServiceLine = ({
<li className="list-item" key={reaction.id}>
<p className="text-md font-medium">
{
t(("areaTranslations." + reaction.id).replace(/-/g, "_")) === (("areaTranslations." + reaction.id).replace(/-/g, "_"))
t((`areaTranslations.${ reaction.id}`).replace(/-/g, "_")) === ((`areaTranslations.${ reaction.id}`).replace(/-/g, "_"))
? reaction.id
: t(("areaTranslations." + reaction.id).replace(/-/g, "_"))}
: t((`areaTranslations.${ reaction.id}`).replace(/-/g, "_"))}
</p>
<p className="text-sm">
{
t(("areaTranslations." + reaction.id + "_sub").replace(/-/g, "_")) === (("areaTranslations." + reaction.id + "_sub").replace(/-/g, "_"))
t((`areaTranslations.${ reaction.id }_sub`).replace(/-/g, "_")) === ((`areaTranslations.${ reaction.id }_sub`).replace(/-/g, "_"))
? reaction.description
: t(("areaTranslations." + reaction.id + "_sub").replace(/-/g, "_"))}
: t((`areaTranslations.${ reaction.id }_sub`).replace(/-/g, "_"))}
</p>
</li>
))}
Expand Down

0 comments on commit ddf165c

Please sign in to comment.