ReCoded-Org / lets-share-capstone-project

3 stars 2 forks source link

feat(profile-page): profile-Page is ready !!! #39

Closed amjadmak closed 2 years ago

amjadmak commented 2 years ago

to close Issue #37 The desktop: image

The Tablet: image

There are 2 commented lines for future use, you can just ignore them while doing the review. Regarding the width and any other styling issues, it was discussed to be edited later, even though I see them suitable.

This page was simple. You can check the code down below for further information

import * as React from "react";
// import { useState } from "react";
import Layout from "@/components/layout/Layout";
import UserInfo from "@/components/UserInfo";
import MyItems from "@/components/MyItems";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
// import { useTranslation } from "react-i18next";
const ProfileInfo = () => {
    return (
        <Layout>
            <UserInfo />
            <MyItems />
        </Layout>
    );
};
export async function getStaticProps({ locale }) {
    return {
        props: {
            ...(await serverSideTranslations(locale, ["common"])),
            // Will be passed to the page component as props
        },
    };
}

export default ProfileInfo;

Related Issue