Skip to content

Commit 5ec0aa1

Browse files
mkueactions-user
authored andcommitted
Prettified Code!
1 parent 0c0ab1d commit 5ec0aa1

File tree

14 files changed

+175
-228
lines changed

14 files changed

+175
-228
lines changed
Lines changed: 127 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,129 @@
11
{
2-
"landing-page": {
3-
"title": [
4-
{
5-
"text": "We wanted to act. We found a way to do it. "
6-
},
7-
{
8-
"text": "Social Income was born.",
9-
"color": "secondary"
10-
}
11-
]
12-
},
13-
"our-mission": {
14-
"header": "Our Mission",
15-
"title": [
16-
{
17-
"text": "Fighting global poverty with the "
18-
},
19-
{
20-
"text": "help of everyday people.",
21-
"color": "secondary"
22-
}
23-
],
24-
"subtitle": "Many people in wealthier countries are committed to addressing inequality, but don’t know how or where to start.",
25-
"paragraphs": [
26-
"Thanks to the widespread use of mobile phone-based money transfer services in developing countries, it is easier than ever to send money directly to people in need, at almost no cost.",
27-
"Social Income wants to harness this potential by combining two approaches to wealth redistribution. The first is the concept of Universal Basic Income, which is a promising path towards a more equal and inclusive society.",
28-
"The second is the use of direct and anticipatory cash transfers to people living in poverty. Research has shown that those who receive direct aid greatly benefit from the money and that they reinvest it locally, responsibly, and successfully.",
29-
"We make an impact by sending regular long-term cash transfers directly to recipients: from person to person, because many of the world's poorest countries lack solid social infrastructure.",
30-
"And we do so in a radically transparent way that allows us to avoid the high administrative costs normally associated with such projects."
31-
]
32-
},
33-
"100-percent-model": {
34-
"header": "100% Model",
35-
"title": [
36-
{
37-
"text": "Zero overhead costs. "
38-
},
39-
{
40-
"text": "Our pledge to you.",
41-
"color": "secondary"
42-
}
43-
],
44-
"paragraphs": [
45-
"We believe that 100% of our contributors’ donations should go to our recipients. To maintain this promise, all our operating costs and financial expenses are covered by philanthropic grants and institutional donations.",
46-
"Thanks to this support, we can guarantee that 100% of the money from our individual contributors reaches our recipients.",
47-
"Additionally, we receive various in-kind support from organizations, such as <a href='https://www.google.com/nonprofits/' class='underline' target='_blank'>Google Non-profit</a> or <a href='https://lineto.com/' class='underline' target='_blank'>Lineto</a> (Unica77 font). Thank you!"
48-
]
49-
},
50-
"flow-of-funds": {
51-
"header": "Flow of Funds",
52-
"title": [
53-
{
54-
"text": "Social Income payments are sent directly to "
55-
},
56-
{
57-
"text": "recipients’ mobile phones.",
58-
"color": "secondary"
59-
}
60-
],
61-
"paragraphs": [
62-
"We receive contributions from all over the world. They are safely stored in our bank account, in the most stable currency in the world: Swiss Francs. Every month we transfer just enough money to local banks in the countries where we are active. We then distribute Social Incomes with the help of mobile money directly to the phones of beneficiaries."
63-
],
64-
"vimeo-video-id": "840215695"
65-
},
66-
"team": {
67-
"header": "Our Team",
68-
"title": [
69-
{
70-
"text": "We're making Social Income "
71-
},
72-
{
73-
"text": "a reality.",
74-
"color": "secondary"
75-
}
76-
],
77-
"roles": {
78-
"finance": "Finances",
79-
"operations": "Operations",
80-
"marketing": "Marketing",
81-
"communications": "Communications",
82-
"co-president": "Co-President",
83-
"founder": "Founder",
84-
"board-member": "Board Member",
85-
"software-development": "Software Development",
86-
"app-development": "App Development",
87-
"impact-measurement": "Impact Measurement",
88-
"strategy": "Strategy"
89-
},
90-
"groups": {
91-
"staff": {
92-
"name": "Staff",
93-
"description": "Our local staff in Sierra Leone."
94-
},
95-
"volunteers": {
96-
"name": "Volunteers",
97-
"description": "The people who make it all happen."
98-
},
99-
"board": {
100-
"name": "Board of Association",
101-
"description": "The overseers of the organization."
102-
},
103-
"special-thanks": {
104-
"name": "Special Thanks",
105-
"description": "These individuals have volunteered and made generous contributions towards Social Income."
106-
}
107-
}
108-
},
109-
"contact": {
110-
"header": "Contact",
111-
"title": [
112-
{
113-
"text": "We're a Swiss "
114-
},
115-
{
116-
"text": "non-profit organization.",
117-
"color": "secondary"
118-
}
119-
],
120-
"paragraph": "Social Income was founded as a non-profit association in Zurich, Switzerland. An independent board oversees the organization.",
121-
"legal-status": "Legal Status",
122-
"legal-status-paragraphs": [
123-
"Non-profit organization founded under Swiss law in 2019 with tax exempt status.",
124-
"UID: CHE-289.611.695",
125-
"DUNS: 48-045-6376"
126-
],
127-
"find-us": "Find us on"
128-
}
2+
"landing-page": {
3+
"title": [
4+
{
5+
"text": "We wanted to act. We found a way to do it. "
6+
},
7+
{
8+
"text": "Social Income was born.",
9+
"color": "secondary"
10+
}
11+
]
12+
},
13+
"our-mission": {
14+
"header": "Our Mission",
15+
"title": [
16+
{
17+
"text": "Fighting global poverty with the "
18+
},
19+
{
20+
"text": "help of everyday people.",
21+
"color": "secondary"
22+
}
23+
],
24+
"subtitle": "Many people in wealthier countries are committed to addressing inequality, but don’t know how or where to start.",
25+
"paragraphs": [
26+
"Thanks to the widespread use of mobile phone-based money transfer services in developing countries, it is easier than ever to send money directly to people in need, at almost no cost.",
27+
"Social Income wants to harness this potential by combining two approaches to wealth redistribution. The first is the concept of Universal Basic Income, which is a promising path towards a more equal and inclusive society.",
28+
"The second is the use of direct and anticipatory cash transfers to people living in poverty. Research has shown that those who receive direct aid greatly benefit from the money and that they reinvest it locally, responsibly, and successfully.",
29+
"We make an impact by sending regular long-term cash transfers directly to recipients: from person to person, because many of the world's poorest countries lack solid social infrastructure.",
30+
"And we do so in a radically transparent way that allows us to avoid the high administrative costs normally associated with such projects."
31+
]
32+
},
33+
"100-percent-model": {
34+
"header": "100% Model",
35+
"title": [
36+
{
37+
"text": "Zero overhead costs. "
38+
},
39+
{
40+
"text": "Our pledge to you.",
41+
"color": "secondary"
42+
}
43+
],
44+
"paragraphs": [
45+
"We believe that 100% of our contributors’ donations should go to our recipients. To maintain this promise, all our operating costs and financial expenses are covered by philanthropic grants and institutional donations.",
46+
"Thanks to this support, we can guarantee that 100% of the money from our individual contributors reaches our recipients.",
47+
"Additionally, we receive various in-kind support from organizations, such as <a href='https://www.google.com/nonprofits/' class='underline' target='_blank'>Google Non-profit</a> or <a href='https://lineto.com/' class='underline' target='_blank'>Lineto</a> (Unica77 font). Thank you!"
48+
]
49+
},
50+
"flow-of-funds": {
51+
"header": "Flow of Funds",
52+
"title": [
53+
{
54+
"text": "Social Income payments are sent directly to "
55+
},
56+
{
57+
"text": "recipients’ mobile phones.",
58+
"color": "secondary"
59+
}
60+
],
61+
"paragraphs": [
62+
"We receive contributions from all over the world. They are safely stored in our bank account, in the most stable currency in the world: Swiss Francs. Every month we transfer just enough money to local banks in the countries where we are active. We then distribute Social Incomes with the help of mobile money directly to the phones of beneficiaries."
63+
],
64+
"vimeo-video-id": "840215695"
65+
},
66+
"team": {
67+
"header": "Our Team",
68+
"title": [
69+
{
70+
"text": "We're making Social Income "
71+
},
72+
{
73+
"text": "a reality.",
74+
"color": "secondary"
75+
}
76+
],
77+
"roles": {
78+
"finance": "Finances",
79+
"operations": "Operations",
80+
"marketing": "Marketing",
81+
"communications": "Communications",
82+
"co-president": "Co-President",
83+
"founder": "Founder",
84+
"board-member": "Board Member",
85+
"software-development": "Software Development",
86+
"app-development": "App Development",
87+
"impact-measurement": "Impact Measurement",
88+
"strategy": "Strategy"
89+
},
90+
"groups": {
91+
"staff": {
92+
"name": "Staff",
93+
"description": "Our local staff in Sierra Leone."
94+
},
95+
"volunteers": {
96+
"name": "Volunteers",
97+
"description": "The people who make it all happen."
98+
},
99+
"board": {
100+
"name": "Board of Association",
101+
"description": "The overseers of the organization."
102+
},
103+
"special-thanks": {
104+
"name": "Special Thanks",
105+
"description": "These individuals have volunteered and made generous contributions towards Social Income."
106+
}
107+
}
108+
},
109+
"contact": {
110+
"header": "Contact",
111+
"title": [
112+
{
113+
"text": "We're a Swiss "
114+
},
115+
{
116+
"text": "non-profit organization.",
117+
"color": "secondary"
118+
}
119+
],
120+
"paragraph": "Social Income was founded as a non-profit association in Zurich, Switzerland. An independent board oversees the organization.",
121+
"legal-status": "Legal Status",
122+
"legal-status-paragraphs": [
123+
"Non-profit organization founded under Swiss law in 2019 with tax exempt status.",
124+
"UID: CHE-289.611.695",
125+
"DUNS: 48-045-6376"
126+
],
127+
"find-us": "Find us on"
128+
}
129129
}

shared/src/firebase/client/init.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,18 @@ interface InitializeFirebaseClientProps {
1717
functionsEmulatorPort?: number;
1818
}
1919

20-
export const initializeFirebaseClient = ({
21-
firebaseConfig,
22-
authEmulatorUrl,
23-
firestoreEmulatorHost,
24-
firestoreEmulatorPort,
25-
storageEmulatorHost,
26-
storageEmulatorPort,
27-
functionsEmulatorHost,
28-
functionsEmulatorPort,
29-
}: InitializeFirebaseClientProps) => {
20+
export const initializeFirebaseClient = (
21+
{
22+
firebaseConfig,
23+
authEmulatorUrl,
24+
firestoreEmulatorHost,
25+
firestoreEmulatorPort,
26+
storageEmulatorHost,
27+
storageEmulatorPort,
28+
functionsEmulatorHost,
29+
functionsEmulatorPort,
30+
}: InitializeFirebaseClientProps,
31+
) => {
3032
const app = getOrInitializeFirebaseClientApp(firebaseConfig);
3133
const auth = getAuth(app);
3234
const functions = getFunctions(app, DEFAULT_REGION);

shared/src/utils/messaging/email.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,9 @@ interface SendEmailProps {
1616
password: string;
1717
}
1818

19-
export const sendEmail = async ({
20-
from = 'no-reply@socialincome.org',
21-
to,
22-
subject,
23-
content,
24-
attachments = [],
25-
user,
26-
password,
27-
}: SendEmailProps) => {
19+
export const sendEmail = async (
20+
{ from = 'no-reply@socialincome.org', to, subject, content, attachments = [], user, password }: SendEmailProps,
21+
) => {
2822
let transporter: Transporter;
2923
if (!user) {
3024
const testAccount = await nodemailer.createTestAccount();

shared/src/utils/messaging/whatsapp.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ export interface SendWhatsappProps {
1212
templateProps: RenderTemplateProps;
1313
}
1414

15-
export const sendWhatsapp = async ({
16-
to,
17-
from,
18-
twilioConfig,
19-
templateProps,
20-
}: SendWhatsappProps): Promise<MessageInstance> => {
15+
export const sendWhatsapp = async (
16+
{ to, from, twilioConfig, templateProps }: SendWhatsappProps,
17+
): Promise<MessageInstance> => {
2118
const client = new Twilio(twilioConfig.sid, twilioConfig.token);
2219
const body = await renderTemplate(templateProps);
2320
return client.messages.create({ body: body, from: `whatsapp:${from}`, to: `whatsapp:${to}` });

shared/src/utils/templates.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,9 @@ const partials = [
2828
];
2929
partials.forEach((partial) => Handlebars.registerPartial(partial.name, readHbs(partial.path)));
3030

31-
export const renderTemplate = async ({
32-
language,
33-
translationNamespace = [],
34-
hbsTemplatePath,
35-
context,
36-
}: RenderTemplateProps) => {
31+
export const renderTemplate = async (
32+
{ language, translationNamespace = [], hbsTemplatePath, context }: RenderTemplateProps,
33+
) => {
3734
const i18n = i18next.createInstance();
3835
await i18n
3936
.use(

ui/CONTRIBUTING.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ UI elements:
5454
**Example**:
5555

5656
```tsx
57-
export const SoExampleComponent = ({
58-
children,
59-
exampleProperty,
60-
...props
61-
}: SoExampleComponentProps) => {
57+
export const SoExampleComponent = (
58+
{ children, exampleProperty, ...props }: SoExampleComponentProps,
59+
) => {
6260
return (
6361
<p example-property={exampleProperty} {...props}>
6462
{children}

ui/src/components/carousel.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,9 @@ type CarouselProps = {
1414
showControls?: boolean;
1515
} & React.HTMLAttributes<HTMLDivElement>;
1616

17-
export const Carousel = ({
18-
children,
19-
className,
20-
options = {},
21-
showDots = false,
22-
showControls = false,
23-
...props
24-
}: CarouselProps) => {
17+
export const Carousel = (
18+
{ children, className, options = {}, showDots = false, showControls = false, ...props }: CarouselProps,
19+
) => {
2520
const [emblaRef, emblaApi] = useEmblaCarousel(
2621
options,
2722
options?.autoPlay?.enabled ? [Autoplay(options.autoPlay)] : [],

ui/src/components/form.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ const FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFi
2121
const FormField = <
2222
TFieldValues extends FieldValues = FieldValues,
2323
TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
24-
>({
25-
...props
26-
}: ControllerProps<TFieldValues, TName>) => {
24+
>(
25+
{ ...props }: ControllerProps<TFieldValues, TName>,
26+
) => {
2727
return (
2828
<FormFieldContext.Provider value={{ name: props.name }}>
2929
<Controller {...props} />

0 commit comments

Comments
 (0)