2023-02-20 15:21:28 +00:00
|
|
|
import { TopNav } from "@dashboard/components/AppLayout/TopNav";
|
2023-01-16 09:45:12 +00:00
|
|
|
import CardTitle from "@dashboard/components/CardTitle";
|
2021-05-14 08:15:15 +00:00
|
|
|
import { Card, CardContent, Typography } from "@material-ui/core";
|
2020-05-14 09:30:32 +00:00
|
|
|
import React from "react";
|
|
|
|
import { FormattedMessage, useIntl } from "react-intl";
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
interface HomeScreenProps {
|
|
|
|
user: {
|
|
|
|
email: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-11-07 11:34:54 +00:00
|
|
|
export const HomeScreen: React.FC<HomeScreenProps> = ({ user }) => {
|
2019-08-26 14:19:19 +00:00
|
|
|
const intl = useIntl();
|
|
|
|
|
|
|
|
return (
|
2023-02-20 15:21:28 +00:00
|
|
|
<>
|
|
|
|
<TopNav
|
2019-08-26 14:19:19 +00:00
|
|
|
title={intl.formatMessage(
|
|
|
|
{
|
2022-05-05 07:54:28 +00:00
|
|
|
id: "By5ZBp",
|
2019-08-26 14:19:19 +00:00
|
|
|
defaultMessage: "Hello there, {userName}",
|
2022-06-21 09:36:55 +00:00
|
|
|
description: "header",
|
2019-08-26 14:19:19 +00:00
|
|
|
},
|
2022-06-21 09:36:55 +00:00
|
|
|
{ userName: user.email },
|
2019-08-26 14:19:19 +00:00
|
|
|
)}
|
|
|
|
/>
|
|
|
|
<Card>
|
|
|
|
<CardTitle
|
|
|
|
title={intl.formatMessage({
|
2022-05-05 07:54:28 +00:00
|
|
|
id: "6L6Fy2",
|
2019-08-26 14:19:19 +00:00
|
|
|
defaultMessage: "Disclaimer",
|
2022-06-21 09:36:55 +00:00
|
|
|
description: "header",
|
2019-08-26 14:19:19 +00:00
|
|
|
})}
|
|
|
|
/>
|
|
|
|
<CardContent>
|
|
|
|
<Typography>
|
|
|
|
<FormattedMessage
|
2022-05-05 07:54:28 +00:00
|
|
|
id="5LRkEs"
|
2019-08-26 14:19:19 +00:00
|
|
|
defaultMessage="The new dashboard and the GraphQL API are preview-quality software."
|
|
|
|
/>
|
|
|
|
</Typography>
|
|
|
|
<Typography>
|
|
|
|
<FormattedMessage
|
2022-05-05 07:54:28 +00:00
|
|
|
id="G7mu0y"
|
2019-08-26 14:19:19 +00:00
|
|
|
defaultMessage="The GraphQL API is beta quality. It is not fully optimized and some mutations or queries may be missing."
|
|
|
|
/>
|
|
|
|
</Typography>
|
|
|
|
</CardContent>
|
|
|
|
</Card>
|
2023-02-20 15:21:28 +00:00
|
|
|
</>
|
2019-08-26 14:19:19 +00:00
|
|
|
);
|
|
|
|
};
|