Skip to content

Commit

Permalink
Problem With Main Page
Browse files Browse the repository at this point in the history
  • Loading branch information
Nawwar14 committed Oct 6, 2024
1 parent 8c765bf commit 91c2553
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Main/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {cardProperties} from '../../index.tsx';
import { UserContextProvider } from '../User';
import { LoggedRoute } from '../LoggedRoute';

export const Main: React.FC = (mainPageCardInfo:cardProperties[] ) => (
export const Main: React.FC = ({mainPageCardInfo} ) => (

Check failure on line 11 in src/components/Main/main.tsx

View workflow job for this annotation

GitHub Actions / build

Property 'mainPageCardInfo' does not exist on type '{}'.

Check failure on line 11 in src/components/Main/main.tsx

View workflow job for this annotation

GitHub Actions / Check

'mainPageCardInfo' is missing in props validation

Check failure on line 11 in src/components/Main/main.tsx

View workflow job for this annotation

GitHub Actions / Check

There should be no space before this paren
<UserContextProvider>
<BrowserRouter>

Check failure on line 13 in src/components/Main/main.tsx

View workflow job for this annotation

GitHub Actions / Check

Expected indentation of 4 spaces but found 1 tab
<Routes>

Check failure on line 14 in src/components/Main/main.tsx

View workflow job for this annotation

GitHub Actions / Check

Mixed spaces and tabs
Expand Down
2 changes: 1 addition & 1 deletion src/components/MainPage/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Card from '../MainPageCard/Card.tsx';
import {cardProperties}from '../../index.tsx';

Check failure on line 2 in src/components/MainPage/MainPage.tsx

View workflow job for this annotation

GitHub Actions / build

'cardProperties' is declared but its value is never read.


export const MainPage : JSX.Element = (CardProps: cardProperties[]) => (
export const MainPage : JSX.Element = ({CardProps}) => (

Check failure on line 5 in src/components/MainPage/MainPage.tsx

View workflow job for this annotation

GitHub Actions / build

Type '({ CardProps }: { CardProps: any; }) => Element' is not assignable to type 'Element'.

Check failure on line 5 in src/components/MainPage/MainPage.tsx

View workflow job for this annotation

GitHub Actions / build

Binding element 'CardProps' implicitly has an 'any' type.
<div className="page page--gray page--main">
<header className="header">
<div className="container">
Expand Down

0 comments on commit 91c2553

Please sign in to comment.