Skip to content

Commit

Permalink
[Package]: migrate BasePage component to TypeScript (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
raskolnikov-rodion authored Oct 8, 2024
1 parent dad6c96 commit 70c5d14
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ import {
} from "../constants";
import GlobalSearch from "./GlobalSearch/GlobalSearch";

function BasePage({ title, children, description, location }) {
import { ReactElement } from "react";
import { Location } from "history";

type BasePageProps = {
children: ReactElement;
description?: string;
location?: Location;
title?: string;
};

function BasePage({ title, children, description, location }: BasePageProps): ReactElement {
const composedTitle = `${title ? `${title} | ` : ""} ${appTitle}`;

return (
Expand Down

0 comments on commit 70c5d14

Please sign in to comment.