Lint rules and flow annotations for rest of the files

This commit is contained in:
Jori Lallo
2017-11-15 22:56:40 -08:00
parent c9b710cbee
commit 0441e92d08
36 changed files with 77 additions and 51 deletions

View File

@@ -10,9 +10,7 @@ const sheet = new ServerStyleSheet();
export default function renderpage(ctx: Object, children: React$Element<*>) {
const html = ReactDOMServer.renderToString(
<StyleSheetManager sheet={sheet.instance}>
<Layout>
{children}
</Layout>
<Layout>{children}</Layout>
</StyleSheetManager>
);

View File

@@ -16,7 +16,10 @@ export default async () => {
'SECRET_KEY or URL env var is not set'
);
const secret = process.env.SECRET_KEY.slice(0, 6) + process.env.URL;
const id = crypto.createHash('sha256').update(secret).digest('hex');
const id = crypto
.createHash('sha256')
.update(secret)
.digest('hex');
const [
userCount,