Skip to content

Commit

Permalink
Merge pull request #4699 from kobotoolbox/feature/tos
Browse files Browse the repository at this point in the history
Feature: TOS
  • Loading branch information
p2edwards committed Feb 20, 2024
2 parents 5bd52e2 + 0d6df01 commit 9cebef7
Show file tree
Hide file tree
Showing 52 changed files with 2,363 additions and 456 deletions.
4 changes: 4 additions & 0 deletions jsapp/js/account/account.constants.ts
Expand Up @@ -6,6 +6,7 @@ export interface AccountFieldsValues {
name: string;
organization: string;
organization_website: string;
organization_type: string;
sector: string;
gender: string;
bio: string;
Expand All @@ -15,6 +16,7 @@ export interface AccountFieldsValues {
twitter: string;
linkedin: string;
instagram: string;
newsletter_subscription: boolean;
}

export type AccountFieldsErrors = {[name in UserFieldName]?: string};
Expand All @@ -25,6 +27,7 @@ export const USER_FIELD_NAMES: Record<UserFieldName, UserFieldName> = {
name: 'name',
organization: 'organization',
organization_website: 'organization_website',
organization_type: 'organization_type',
sector: 'sector',
gender: 'gender',
bio: 'bio',
Expand All @@ -34,4 +37,5 @@ export const USER_FIELD_NAMES: Record<UserFieldName, UserFieldName> = {
twitter: 'twitter',
linkedin: 'linkedin',
instagram: 'instagram',
newsletter_subscription: 'newsletter_subscription',
};
2 changes: 2 additions & 0 deletions jsapp/js/account/account.utils.ts
Expand Up @@ -7,12 +7,14 @@ export function getInitialAccountFieldsValues(): AccountFieldsValues {
name: '',
organization: '',
organization_website: '',
organization_type: '',
sector: '',
gender: '',
bio: '',
city: '',
country: '',
require_auth: false,
newsletter_subscription: false,
twitter: '',
linkedin: '',
instagram: '',
Expand Down

0 comments on commit 9cebef7

Please sign in to comment.