Skip to content

Commit

Permalink
Fix sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
amrabed committed Oct 20, 2024
1 parent be4d04f commit 9573d95
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
4 changes: 0 additions & 4 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ div {
text-align: justify;
}

/* .sectionHeading {
@apply px-4 text-center flex justify-center items-center text-3xl md:text-4xl font-medium dark:text-primary-dark text-primary pb-8 md:pb-10;
} */

/* Home Animation and About Animation */
.slide-in {
transform: translateX(0);
Expand Down
8 changes: 4 additions & 4 deletions src/app/positions/timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const PositionView = ({ position }: { position: Position }) => (
<Divider />
<CardBody>
<ul>
{position.tasks.map((task, index) => (
{position.tasks.map((task) => (
<li
key={index}
key={task}
className="text-sm font-medium leading-snug tracking-wide text-slate-500 dark:text-slate-400"
>
{task}
Expand All @@ -40,8 +40,8 @@ const PositionView = ({ position }: { position: Position }) => (
<Tools tools={position.skills} />
</div>
<ul className="flex flex-row gap-2 text-zinc-400">
{position.roles.map((role, index) => (
<li key={index}>{role}</li>
{position.roles.map((role) => (
<li key={role}>{role}</li>
))}
</ul>
</CardFooter>
Expand Down
16 changes: 8 additions & 8 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export const MainHeader = () => {
</NavbarContent>

<NavbarContent className="hidden sm:flex gap-4" justify="start">
{sections.map((section, index) => (
<NavbarItem key={index}>
{sections.map((section) => (
<NavbarItem key={section.name}>
<Link
className={"hover:text-primary hover:dark:text-primary-dark"}
href={section.link}
Expand All @@ -81,8 +81,8 @@ export const MainHeader = () => {
</NavbarItem>
))}
<Divider orientation="vertical" className="h-10 my-4" />
{pages.map((page, index) => (
<NavbarItem key={index}>
{pages.map((page) => (
<NavbarItem key={page.name}>
<Link
className={"hover:text-primary hover:dark:text-primary-dark"}
href={page.link}
Expand All @@ -96,8 +96,8 @@ export const MainHeader = () => {
</NavbarContent>

<NavbarMenu className="dark:bg-background backdrop-blur-500 transition-all duration-1000">
{sections.map((section, index) => (
<NavbarMenuItem key={index}>
{sections.map((section) => (
<NavbarMenuItem key={section.name}>
<Link
className="hover:text-primary hover:dark:text-primary-dark"
href={section.link}
Expand All @@ -110,8 +110,8 @@ export const MainHeader = () => {
</NavbarMenuItem>
))}
<Divider />
{pages.map((page, index) => (
<NavbarMenuItem key={index}>
{pages.map((page) => (
<NavbarMenuItem key={page.name}>
<Link
className={"hover:text-primary hover:dark:text-primary-dark"}
href={page.link}
Expand Down
4 changes: 2 additions & 2 deletions src/components/social.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import profiles from "@/data/profiles";

const SocialMedia = () => (
<div className="w-full p-2 z-10 flex flex-wrap justify-center items-center">
{profiles.map((profile, index) => (
<Tooltip key={index} content={profile.name}>
{profiles.map((profile) => (
<Tooltip key={profile.name} content={profile.name}>
<Link href={profile.link} isExternal rel="noreferrer">
<div className="bg-background rounded-full p-1">
<Button
Expand Down

0 comments on commit 9573d95

Please sign in to comment.