diff --git a/README.md b/README.md
index 56062da..ddf37f4 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
# Koodiklinikka
+

@@ -13,7 +14,7 @@
- projektin hallintaan liittyviin asioihin
- tai koko Koodiklinikkaan yleisesti.
------------------------------
+---
## Projektin asennus
@@ -41,7 +42,6 @@ yarn start
Avaa selaimessasi: [`http://localhost:3000`](http://localhost:3000)
-
## Komennot
### `yarn`
diff --git a/TODO.md b/TODO.md
index 4fbb7a5..b1c77d2 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1,6 +1,6 @@
-* Stripe
- * Test ID `pk_test_OmNve9H1OuORlmD4rblpjgzh`
- * Prod ID `pk_live_xrnwdLNXbt20LMxpIDffJnnC`
-* API integration (test backend `https://lit-plateau-4689.herokuapp.com/`)
-* Hero video
-* Deployment
+- Stripe
+ - Test ID `pk_test_OmNve9H1OuORlmD4rblpjgzh`
+ - Prod ID `pk_live_xrnwdLNXbt20LMxpIDffJnnC`
+- API integration (test backend `https://lit-plateau-4689.herokuapp.com/`)
+- Hero video
+- Deployment
diff --git a/components/ChannelReferenceRenderer.tsx b/components/ChannelReferenceRenderer.tsx
index 2226135..adf2127 100644
--- a/components/ChannelReferenceRenderer.tsx
+++ b/components/ChannelReferenceRenderer.tsx
@@ -8,7 +8,10 @@ function renderStringWithChannelRefs(value: string) {
const matches = str.match(/<#([A-Z0-9]+)\|([A-Za-z0-9]+)>/);
if (matches) {
return (
-
+
#{matches[2]}
);
@@ -19,8 +22,11 @@ function renderStringWithChannelRefs(value: string) {
);
}
-export const ChannelReferenceRenderer = ({ children }: React.PropsWithChildren<{}>) => {
+export const ChannelReferenceRenderer = ({
+ children,
+}: React.PropsWithChildren<{}>) => {
// TODO: this should probably walk the tree
- if (typeof children[0] === "string") return renderStringWithChannelRefs(children[0]);
+ if (typeof children[0] === "string")
+ return renderStringWithChannelRefs(children[0]);
return <>{children}>;
};
diff --git a/components/membership/MembershipInfoForm.tsx b/components/membership/MembershipInfoForm.tsx
index 5034825..0906209 100644
--- a/components/membership/MembershipInfoForm.tsx
+++ b/components/membership/MembershipInfoForm.tsx
@@ -32,7 +32,8 @@ const fieldNameTranslations = {
postcode: { fi: "Postinumero" },
};
-const mailValidateRe = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
+const mailValidateRe =
+ /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
function validateEmail(email) {
return mailValidateRe.test(email);
diff --git a/data/sponsors.ts b/data/sponsors.ts
index 5c5b587..1bb2eab 100644
--- a/data/sponsors.ts
+++ b/data/sponsors.ts
@@ -1,31 +1,31 @@
-const sponsors = [
- {
- name: "Futurice",
- href: "https://futurice.com/",
- },
- {
- name: "Metosin",
- href: "https://www.metosin.fi/",
- },
- {
- name: "Solita",
- href: "https://www.solita.fi/",
- },
- {
- name: "Wakeone",
- href: "https://wakeone.co/",
- },
- {
- name: "Nordea",
- href: "https://www.nordea.fi/",
- },
- {
- name: "Idean",
- href: "https://www.idean.com/",
- },
- {
- name: "Rare",
- href: "https://rare.fi/",
- },
-];
-export default sponsors;
+const sponsors = [
+ {
+ name: "Futurice",
+ href: "https://futurice.com/",
+ },
+ {
+ name: "Metosin",
+ href: "https://www.metosin.fi/",
+ },
+ {
+ name: "Solita",
+ href: "https://www.solita.fi/",
+ },
+ {
+ name: "Wakeone",
+ href: "https://wakeone.co/",
+ },
+ {
+ name: "Nordea",
+ href: "https://www.nordea.fi/",
+ },
+ {
+ name: "Idean",
+ href: "https://www.idean.com/",
+ },
+ {
+ name: "Rare",
+ href: "https://rare.fi/",
+ },
+];
+export default sponsors;
diff --git a/next.config.js b/next.config.js
index a3bfe23..111564e 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,4 +1,4 @@
-const withStylus = require('@zeit/next-stylus');
-const withLess = require('@zeit/next-less');
-const withFonts = require('next-fonts');
+const withStylus = require("@zeit/next-stylus");
+const withLess = require("@zeit/next-less");
+const withFonts = require("next-fonts");
module.exports = withFonts(withLess(withStylus()));
diff --git a/pages/_document.tsx b/pages/_document.tsx
index b08c50a..6775597 100644
--- a/pages/_document.tsx
+++ b/pages/_document.tsx
@@ -11,8 +11,8 @@ class CustomNextHead extends Head {
// https://github.com/zeit/next-plugins/issues/364
getCssLinks({ allFiles }) {
return allFiles
- .filter(file => file.endsWith(".css"))
- .map(file => (
+ .filter((file) => file.endsWith(".css"))
+ .map((file) => (