Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Feb 11, 2022
1 parent fa188b6 commit ede079c
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 49 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Koodiklinikka

![Travis](https://travis-ci.org/koodiklinikka/koodiklinikka.fi.svg?branch=master)

<img align="right" src="./public/static/images/logo-new-black.svg" alt="Koodiklinikka-logo" max-width="30%">
Expand All @@ -13,7 +14,7 @@
- projektin hallintaan liittyviin asioihin
- tai koko Koodiklinikkaan yleisesti.

-----------------------------
---

## Projektin asennus

Expand Down Expand Up @@ -41,7 +42,6 @@ yarn start

Avaa selaimessasi: [`http://localhost:3000`](http://localhost:3000)


## Komennot

### `yarn`
Expand Down
12 changes: 6 additions & 6 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -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
12 changes: 9 additions & 3 deletions components/ChannelReferenceRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ function renderStringWithChannelRefs(value: string) {
const matches = str.match(/<#([A-Z0-9]+)\|([A-Za-z0-9]+)>/);
if (matches) {
return (
<a href={`https://app.slack.com/client/T03BQ3NU9/${matches[1]}`} key={i}>
<a
href={`https://app.slack.com/client/T03BQ3NU9/${matches[1]}`}
key={i}
>
#{matches[2]}
</a>
);
Expand All @@ -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}</>;
};
3 changes: 2 additions & 1 deletion components/membership/MembershipInfoForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
62 changes: 31 additions & 31 deletions data/sponsors.ts
Original file line number Diff line number Diff line change
@@ -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;
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -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()));
4 changes: 2 additions & 2 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => (
<style
key={file}
nonce={this.props.nonce}
Expand Down
20 changes: 19 additions & 1 deletion public/static/icons/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

0 comments on commit ede079c

Please sign in to comment.