Skip to content

Commit

Permalink
docs: converted error pages to Layouts instead of actual components
Browse files Browse the repository at this point in the history
feat: `ErrorPage` is no longer a component and instead is a layout
  • Loading branch information
zeddotes committed Jan 19, 2023
1 parent 90f73f8 commit a631641
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ export { Heading } from "./components/Heading/Heading";
*/
export { Image } from "./components/Image/Image";

/**
* Error Page
*/
export { ErrorPage } from "./components/ErrorPage/ErrorPage";

/**
* Header Component
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import PropTypes from "prop-types";
import React from "react";
import { Heading } from "../Heading/Heading";
import { Link } from "../Link/Link";
import EN from "../../translations/en.json";
import FR from "../../translations/fr.json";
import { Heading } from "../../../../components/Heading/Heading";
import { Link } from "../../../../components/Link/Link";
import EN from "../../../../translations/en.json";
import FR from "../../../../translations/fr.json";

export function ErrorPage(props) {
const { isAuth, errType, lang, homePageLink, accountPageLink } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import { ErrorPage } from "./ErrorPage";

export default {
title: "Components/ErrorPage",
title: "Styles/Layouts/Error Pages",
component: ErrorPage,
};

Expand Down
File renamed without changes.

0 comments on commit a631641

Please sign in to comment.