Skip to content

Commit

Permalink
Fix Footer type
Browse files Browse the repository at this point in the history
  • Loading branch information
kilemensi committed Jun 22, 2024
1 parent 9fa4a4b commit 40e5fed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/roboshield/src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import NewsletterSubscription from "@/roboshield/components/NewsletterSubscripti
import StayInTouch from "@/roboshield/components/StayInTouch";
import FooterDescription from "./FooterDescription";

interface FooterProps {
export interface FooterProps {
connect: {
links: { url: string; platform: string }[];
title: string;
Expand Down
2 changes: 2 additions & 0 deletions apps/roboshield/src/components/Footer/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { FooterProps } from "./Footer";
import Footer from "./Footer";

export type { FooterProps };
export default Footer;
5 changes: 3 additions & 2 deletions apps/roboshield/src/components/Page/Page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";

import Footer from "../Footer";
import type { FooterProps } from "@/roboshield/components/Footer";
import Footer from "@/roboshield/components/Footer";

import NavBar from "@/roboshield/components/NavBar";

Expand Down Expand Up @@ -33,7 +34,7 @@ interface Footer {
interface Props {
children?: React.ReactNode;
navbar?: Navbar;
footer?: Footer;
footer?: FooterProps;
}
function Page({ children, navbar, footer }: Props) {
return (
Expand Down

0 comments on commit 40e5fed

Please sign in to comment.