diff --git a/frontend/src/component/Layout/Footer.tsx b/frontend/src/component/Layout/Footer.tsx index 42835c2e..8a7a547c 100644 --- a/frontend/src/component/Layout/Footer.tsx +++ b/frontend/src/component/Layout/Footer.tsx @@ -6,18 +6,18 @@ interface IFooterProps { active?: boolean; } -export const Footer: React.FC = ({ title, onClick, active }) => { - const shadow = active ? 'shadow-float' : 'shadow-basic'; - const fontColor = active ? 'text-gray-900' : 'text-gray-400'; +export const Footer: React.FC = (props: IFooterProps) => { + const shadow = props.active ? 'shadow-float' : 'shadow-basic'; + const fontColor = props.active ? 'text-gray-900' : 'text-gray-400'; return (
); diff --git a/frontend/src/component/Layout/Header.tsx b/frontend/src/component/Layout/Header.tsx index 57ce2caa..a4f780c1 100644 --- a/frontend/src/component/Layout/Header.tsx +++ b/frontend/src/component/Layout/Header.tsx @@ -6,13 +6,13 @@ interface IHeaderProps { buttonElement?: ReactNode; } -export const Header: React.FC = ({ title, isTransparency, buttonElement }) => { - const background = isTransparency ? '' : 'bg-white'; +export const Header: React.FC = (props: IHeaderProps) => { + const background = props.isTransparency ? '' : 'bg-white'; return (
- {buttonElement} -

{title}

+ {props.buttonElement} +

{props.title}

); }; diff --git a/frontend/src/component/Layout/Layout.tsx b/frontend/src/component/Layout/Layout.tsx index 6519934c..30c7ac10 100644 --- a/frontend/src/component/Layout/Layout.tsx +++ b/frontend/src/component/Layout/Layout.tsx @@ -12,23 +12,19 @@ interface ILayoutProps { footerOnClick?: () => void; } -export const Layout: React.FC = ({ - children, - headerTitle, - footerTitle, - isHeaderTransparent = false, - footerActive = true, - headerButton, - footerOnClick, -}) => ( +export const Layout: React.FC = (props: ILayoutProps) => (
{/* Header */} -
+
{/* Main content */} -
{children}
+
{props.children}
{/* Footer */} -
);