diff --git a/src/app/modules/user/main/compose/index.ts b/src/app/modules/user/main/compose/index.ts
index a20e24f..7d9ad72 100644
--- a/src/app/modules/user/main/compose/index.ts
+++ b/src/app/modules/user/main/compose/index.ts
@@ -6,6 +6,7 @@ import { NoticeComposeComponent } from './notice-compose.component';
import { WithdrawComposeComponent } from './withdraw-compose.component';
import { WithdrawHistoryComposeComponent } from './withdraw-history-compose.component';
import { SignUpComposeComponent } from './sign-up-compose.component';
+import { SignInComposeComponent } from './sign-in-compose.component';
export const COMPOSE = [
DepositComposeComponent,
WithdrawComposeComponent,
@@ -15,4 +16,5 @@ export const COMPOSE = [
WithdrawHistoryComposeComponent,
NoticeComposeComponent,
SignUpComposeComponent,
+ SignInComposeComponent,
];
diff --git a/src/app/modules/user/main/compose/sign-in-compose.component.html b/src/app/modules/user/main/compose/sign-in-compose.component.html
new file mode 100644
index 0000000..45886c7
--- /dev/null
+++ b/src/app/modules/user/main/compose/sign-in-compose.component.html
@@ -0,0 +1,56 @@
+
diff --git a/src/app/modules/user/main/compose/sign-in-compose.component.ts b/src/app/modules/user/main/compose/sign-in-compose.component.ts
new file mode 100644
index 0000000..d88aa24
--- /dev/null
+++ b/src/app/modules/user/main/compose/sign-in-compose.component.ts
@@ -0,0 +1,91 @@
+import { Component, OnInit, ViewEncapsulation } from '@angular/core';
+import { FormBuilder, FormGroup, Validators } from '@angular/forms';
+import { MatDialogRef } from '@angular/material/dialog';
+
+@Component({
+ selector: 'sign-in-compose',
+ templateUrl: './sign-in-compose.component.html',
+ encapsulation: ViewEncapsulation.None,
+})
+export class SignInComposeComponent implements OnInit {
+ composeForm!: FormGroup;
+ copyFields: { cc: boolean; bcc: boolean } = {
+ cc: false,
+ bcc: false,
+ };
+ quillModules: any = {
+ toolbar: [
+ ['bold', 'italic', 'underline'],
+ [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }],
+ ['clean'],
+ ],
+ };
+
+ /**
+ * Constructor
+ */
+ constructor(
+ public matDialogRef: MatDialogRef,
+ private _formBuilder: FormBuilder
+ ) {}
+
+ // -----------------------------------------------------------------------------------------------------
+ // @ Lifecycle hooks
+ // -----------------------------------------------------------------------------------------------------
+
+ /**
+ * On init
+ */
+ ngOnInit(): void {
+ // Create the form
+ this.composeForm = this._formBuilder.group({
+ username: ['', [Validators.required, Validators.email]],
+ password: ['', [Validators.email]],
+ });
+ }
+
+ // -----------------------------------------------------------------------------------------------------
+ // @ Public methods
+ // -----------------------------------------------------------------------------------------------------
+
+ /**
+ * Show the copy field with the given field name
+ *
+ * @param name
+ */
+ showCopyField(name: string): void {
+ // Return if the name is not one of the available names
+ if (name !== 'cc' && name !== 'bcc') {
+ return;
+ }
+
+ // Show the field
+ this.copyFields[name] = true;
+ }
+
+ /**
+ * Save and close
+ */
+ saveAndClose(): void {
+ // Save the message as a draft
+ this.saveAsDraft();
+
+ // Close the dialog
+ this.matDialogRef.close();
+ }
+
+ /**
+ * Discard the message
+ */
+ discard(): void {}
+
+ /**
+ * Save the message as a draft
+ */
+ saveAsDraft(): void {}
+
+ /**
+ * Send the message
+ */
+ send(): void {}
+}
diff --git a/src/app/modules/user/main/main.component.html b/src/app/modules/user/main/main.component.html
index 8703187..992d738 100644
--- a/src/app/modules/user/main/main.component.html
+++ b/src/app/modules/user/main/main.component.html
@@ -79,23 +79,12 @@
-
-
-
-
-
diff --git a/src/app/modules/user/main/main.component.ts b/src/app/modules/user/main/main.component.ts
index 7e345e7..c917eb3 100644
--- a/src/app/modules/user/main/main.component.ts
+++ b/src/app/modules/user/main/main.component.ts
@@ -5,11 +5,13 @@ import { CustomerComposeComponent } from './compose/customer-compose.component';
import { DepositComposeComponent } from './compose/deposit-compose.component';
import { DepositHistoryComposeComponent } from './compose/deposit-history-compose.component';
import { NoticeComposeComponent } from './compose/notice-compose.component';
+import { SignInComposeComponent } from './compose/sign-in-compose.component';
import { SignUpComposeComponent } from './compose/sign-up-compose.component';
import { WithdrawComposeComponent } from './compose/withdraw-compose.component';
import { WithdrawHistoryComposeComponent } from './compose/withdraw-history-compose.component';
export enum ComposeMenuType {
+ signin = 'signin',
signup = 'Signup',
deposit = 'Deposit',
withdraw = 'Withdraw',
@@ -207,6 +209,9 @@ export class MainComponent {
let selectType: any;
switch (composeMenuType) {
+ case ComposeMenuType.signin:
+ selectType = SignInComposeComponent;
+ break;
case ComposeMenuType.signup:
selectType = SignUpComposeComponent;
break;