Skip to content

Commit

Permalink
fix: rename component
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoM13 committed Apr 17, 2023
1 parent 707b586 commit 70cea07
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { BaseStats } from './components/BaseStats/BaseStats';
import { InfoBox } from './components/InfoBox/InfoBox';
import { Tabs } from './components/Tabs/Tabs';

export const CardDetails = ({
export const DetailsCard = ({
id,
name,
img,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Pokedex.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { Helmet } from 'react-helmet';

import { CardDetails } from '@components/CardDetails/CardDetails';
import { DetailsCard } from '@components/DetailsCard/DetailsCard';
import { Footer } from '@components/Footer/Footer';
import { Header } from '@components/Header/Header';
import { InputSearch } from '@components/InputSearch/InputSearch';
Expand Down Expand Up @@ -36,7 +36,7 @@ const Pokedex: React.FC = () => {

<ContentModal active={active} onCloseModal={handleOnToggleModal}>
{selectedItemId && (
<CardDetails
<DetailsCard
id={itemDetails?.id}
name={itemDetails?.name}
types={itemDetails?.types}
Expand Down

0 comments on commit 70cea07

Please sign in to comment.