2019-06-19 14:40:52 +00:00
|
|
|
import Card from "@material-ui/core/Card";
|
|
|
|
import CardContent from "@material-ui/core/CardContent";
|
|
|
|
import Typography from "@material-ui/core/Typography";
|
2019-08-09 10:26:22 +00:00
|
|
|
import React from "react";
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
import CardTitle from "@saleor/components/CardTitle";
|
|
|
|
import Container from "@saleor/components/Container";
|
|
|
|
import PageHeader from "@saleor/components/PageHeader";
|
|
|
|
import i18n from "../../i18n";
|
|
|
|
|
|
|
|
interface HomeScreenProps {
|
|
|
|
user: {
|
|
|
|
email: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export const HomeScreen: React.StatelessComponent<HomeScreenProps> = ({
|
|
|
|
user
|
|
|
|
}) => (
|
|
|
|
<Container>
|
|
|
|
<PageHeader
|
|
|
|
title={i18n.t("Hello there, {{userName}}", { userName: user.email })}
|
|
|
|
/>
|
|
|
|
<Card>
|
|
|
|
<CardTitle title={i18n.t("Disclaimer")} />
|
|
|
|
<CardContent>
|
|
|
|
<Typography>
|
|
|
|
{i18n.t(
|
|
|
|
"The new dashboard and the GraphQL API are preview-quality software."
|
|
|
|
)}
|
|
|
|
</Typography>
|
|
|
|
<Typography>
|
|
|
|
{i18n.t(
|
|
|
|
"The GraphQL API is beta quality. It is not fully optimized and some mutations or queries may be missing."
|
|
|
|
)}
|
|
|
|
</Typography>
|
|
|
|
</CardContent>
|
|
|
|
</Card>
|
|
|
|
</Container>
|
|
|
|
);
|