Skip to content

Commit

Permalink
fix(lint): adjust lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Armanpreet Ghotra committed Nov 6, 2024
1 parent fb4f385 commit 8a6cd28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Accordions/Accordion.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use client';

import { Accordion, AccordionItem } from '@nextui-org/accordion';

import { AccordionsProps } from '@/domain/props/AccordionProps';
import { commonColors } from '@nextui-org/theme';
import { useTheme } from 'next-themes';

import { AccordionsProps } from '@/domain/props/AccordionProps';

export default function CustomAccordion({ items }: AccordionsProps) {
const { theme } = useTheme();
const lightThemeBg = commonColors.zinc;
Expand All @@ -15,9 +15,9 @@ export default function CustomAccordion({ items }: AccordionsProps) {
<Accordion variant="splitted" className="accordion-container">
{items.map((item) => (
<AccordionItem
style={{
backgroundColor: theme === 'dark' ? darkThemeBg : lightThemeBg[500],
}}
style={{
backgroundColor: theme === 'dark' ? darkThemeBg : lightThemeBg[500],
}}
key={item.title}
aria-label={item.title}
title={
Expand Down
1 change: 1 addition & 0 deletions src/components/Cards/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { Card, CardBody, CardHeader, Image } from '@nextui-org/react';
import { commonColors } from '@nextui-org/theme';
import { useTheme } from 'next-themes';

import { CardProps } from '@/domain/props/CardProps';

export default function CustomCard({ title, content }: CardProps) {
Expand Down

0 comments on commit 8a6cd28

Please sign in to comment.