diff --git a/src/components/Authors/Authors.tsx b/src/components/Authors/Authors.tsx index 85bc251..286eb7d 100644 --- a/src/components/Authors/Authors.tsx +++ b/src/components/Authors/Authors.tsx @@ -8,11 +8,11 @@ export enum AuthorsDirection { ROW = 'row', } -export type AuthorsProps = React.ComponentProps & { +export type AuthorsProps = Partial< + React.ComponentProps +> & { authors: LPE.Author.Document[] email: boolean - gap?: number - flexDirection?: AuthorsDirection } const Authors: React.FC = ({ @@ -39,8 +39,8 @@ const Authors: React.FC = ({ } const AuthorsContainer = styled.div<{ - gap: number - flexDirection: AuthorsDirection + gap?: number + flexDirection?: AuthorsDirection }>` display: flex; flex-direction: ${({ flexDirection }) => flexDirection}; diff --git a/src/layouts/ArticleLayout/Article.layout.tsx b/src/layouts/ArticleLayout/Article.layout.tsx index c4dff93..6f3a69e 100644 --- a/src/layouts/ArticleLayout/Article.layout.tsx +++ b/src/layouts/ArticleLayout/Article.layout.tsx @@ -1,27 +1,17 @@ -import { AppBar } from '../../components/NavBar' import { Footer } from '@/components/Footer' import { Main } from '@/components/Main' -import { useArticleContext } from '@/context/article.context' import { PropsWithChildren } from 'react' -import { useThemeState } from '../../states/themeState' +import { AppBar } from '../../components/NavBar' import styles from './Article.layout.module.css' type Props = PropsWithChildren<{ // onSearch: (query: string, filters: string[]) => void }> export default function ArticleLayout({ children }: Props) { - const themeState = useThemeState() - const { onSearch, onReset } = useArticleContext() - return ( <>
- +
{children}