2020-07-17 10:03:38 +02:00
|
|
|
import React from 'react';
|
2020-07-24 04:56:55 +02:00
|
|
|
import Layout from 'components/Layout';
|
2020-08-05 07:45:05 +02:00
|
|
|
import WebsiteList from 'components/WebsiteList';
|
2020-08-06 04:04:02 +02:00
|
|
|
import useRequireLogin from 'hooks/useRequireLogin';
|
2020-08-05 07:45:05 +02:00
|
|
|
|
|
|
|
export default function HomePage() {
|
2020-08-06 04:04:02 +02:00
|
|
|
const { loading } = useRequireLogin();
|
2020-08-05 07:45:05 +02:00
|
|
|
|
|
|
|
if (loading) {
|
|
|
|
return null;
|
|
|
|
}
|
2020-07-17 10:03:38 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
<Layout>
|
2020-07-28 10:17:45 +02:00
|
|
|
<WebsiteList />
|
2020-07-17 10:03:38 +02:00
|
|
|
</Layout>
|
|
|
|
);
|
|
|
|
}
|