diff --git a/app/admin/accounts/page.tsx b/app/admin/accounts/page.tsx
index 54cb3c6..f8a9e4d 100644
--- a/app/admin/accounts/page.tsx
+++ b/app/admin/accounts/page.tsx
@@ -1,4 +1,5 @@
import { ServerDataLoader } from '@makerkit/data-loader-supabase-nextjs';
+import { Trans } from 'react-i18next';
import { AdminAccountsTable } from '@kit/admin/components/admin-accounts-table';
import { AdminCreateCompanyDialog } from '@kit/admin/components/admin-create-company-dialog';
@@ -38,7 +39,9 @@ async function AccountsPage(props: AdminAccountsPageProps) {
-
+
diff --git a/app/home/[account]/billing/page.tsx b/app/home/[account]/billing/page.tsx
index 9d2da4c..bc8288b 100644
--- a/app/home/[account]/billing/page.tsx
+++ b/app/home/[account]/billing/page.tsx
@@ -1,4 +1,3 @@
-import { createAccountsApi } from '@/packages/features/accounts/src/server/api';
import { createTeamAccountsApi } from '@/packages/features/team-accounts/src/server/api';
import { getSupabaseServerClient } from '@/packages/supabase/src/clients/server-client';
diff --git a/packages/features/auth/src/components/password-sign-up-form.tsx b/packages/features/auth/src/components/password-sign-up-form.tsx
index f7d8de5..dbba6ea 100644
--- a/packages/features/auth/src/components/password-sign-up-form.tsx
+++ b/packages/features/auth/src/components/password-sign-up-form.tsx
@@ -30,7 +30,6 @@ interface PasswordSignUpFormProps {
displayTermsCheckbox?: boolean;
onSubmit: (params: {
- personalCode: string;
email: string;
password: string;
repeatPassword: string;
@@ -49,7 +48,6 @@ export function PasswordSignUpForm({
const form = useForm({
resolver: zodResolver(PasswordSignUpSchema),
defaultValues: {
- personalCode: '',
email: defaultValues?.email ?? '',
password: '',
repeatPassword: '',
@@ -62,28 +60,6 @@ export function PasswordSignUpForm({
className={'flex w-full flex-col gap-y-4'}
onSubmit={form.handleSubmit(onSubmit)}
>
- (
-
-
-
-
-
-
-
-
-
-
-
- )}
- />
redirect(redirectUrl)}
diff --git a/packages/features/auth/src/hooks/use-sign-up-flow.ts b/packages/features/auth/src/hooks/use-sign-up-flow.ts
index 1732b68..5b19ab9 100644
--- a/packages/features/auth/src/hooks/use-sign-up-flow.ts
+++ b/packages/features/auth/src/hooks/use-sign-up-flow.ts
@@ -8,7 +8,6 @@ import { useAppEvents } from '@kit/shared/events';
import { useSignUpWithEmailAndPassword } from '@kit/supabase/hooks/use-sign-up-with-email-password';
type SignUpCredentials = {
- personalCode: string;
email: string;
password: string;
};
diff --git a/packages/features/auth/src/schemas/password-sign-up.schema.ts b/packages/features/auth/src/schemas/password-sign-up.schema.ts
index b2fcab4..828924d 100644
--- a/packages/features/auth/src/schemas/password-sign-up.schema.ts
+++ b/packages/features/auth/src/schemas/password-sign-up.schema.ts
@@ -4,9 +4,6 @@ import { RefinedPasswordSchema, refineRepeatPassword } from './password.schema';
export const PasswordSignUpSchema = z
.object({
- personalCode: z.string().regex(/^[1-6]\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}\d$/, {
- message: 'Invalid Estonian personal code format',
- }),
email: z.string().email(),
password: RefinedPasswordSchema,
repeatPassword: RefinedPasswordSchema,
diff --git a/packages/supabase/src/hooks/use-sign-up-with-email-password.ts b/packages/supabase/src/hooks/use-sign-up-with-email-password.ts
index 01a247f..d670e85 100644
--- a/packages/supabase/src/hooks/use-sign-up-with-email-password.ts
+++ b/packages/supabase/src/hooks/use-sign-up-with-email-password.ts
@@ -1,10 +1,9 @@
import { useMutation } from '@tanstack/react-query';
-import { useSupabase } from './use-supabase';
import { medusaLoginOrRegister } from '../../../features/medusa-storefront/src/lib/data/customer';
+import { useSupabase } from './use-supabase';
interface Credentials {
- personalCode: string;
email: string;
password: string;
emailRedirectTo: string;
@@ -16,17 +15,14 @@ export function useSignUpWithEmailAndPassword() {
const mutationKey = ['auth', 'sign-up-with-email-password'];
const mutationFn = async (params: Credentials) => {
- const { emailRedirectTo, captchaToken, personalCode, ...credentials } = params;
-
+ const { emailRedirectTo, captchaToken, ...credentials } = params;
+
// TODO?: should be a validation of unique personal code before registration
const response = await client.auth.signUp({
...credentials,
options: {
emailRedirectTo,
captchaToken,
- data: {
- personalCode
- }
},
});
diff --git a/public/locales/et/account.json b/public/locales/et/account.json
index 7ce015f..01dbddb 100644
--- a/public/locales/et/account.json
+++ b/public/locales/et/account.json
@@ -112,7 +112,7 @@
"noTeamsYet": "You don't have any teams yet.",
"createTeam": "Create a team to get started.",
"createTeamButtonLabel": "Create a Team",
- "createCompanyAccount": "Create Company Account",
+ "createCompanyAccount": "Loo ettevõtte konto",
"requestCompanyAccount": {
"title": "Ettevõtte andmed",
"description": "Pakkumise saamiseks palun sisesta ettevõtte andmed millega MedReport kasutada kavatsed.",
@@ -149,4 +149,4 @@
"updateRoleSuccess": "Roll uuendatud",
"updateRoleError": "Midagi läks valesti. Palun proovi uuesti",
"updateRoleLoading": "Rolli uuendatakse..."
-}
\ No newline at end of file
+}
diff --git a/public/locales/et/common.json b/public/locales/et/common.json
index 4c2473a..fd3a5e9 100644
--- a/public/locales/et/common.json
+++ b/public/locales/et/common.json
@@ -36,7 +36,7 @@
"expandSidebar": "Expand Sidebar",
"collapseSidebar": "Collapse Sidebar",
"documentation": "Documentation",
- "getStarted": "Get Started",
+ "getStarted": "Alusta!",
"getStartedWithPlan": "Get Started with {{plan}}",
"retry": "Retry",
"contactUs": "Contact Us",