Skip to content

Commit

Permalink
fix: Fix for recent icons related changes (#2673)
Browse files Browse the repository at this point in the history
Co-authored-by: Dimple <dimple.kh@fyle.in>
  • Loading branch information
Dimple16 and Dimple committed Jan 18, 2024
1 parent 41b41db commit 4b7102d
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 23 deletions.
6 changes: 3 additions & 3 deletions src/app/core/mock-data/action-sheet-options.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const expectedActionSheetButtonRes = [
},
{
text: 'Add Manually',
icon: 'assets/svg/expense.svg',
icon: 'assets/svg/list.svg',
cssClass: 'capture-receipt',
handler: undefined,
},
Expand All @@ -56,7 +56,7 @@ export const expectedActionSheetButtonsWithMileage = [
},
{
text: 'Add Manually',
icon: 'assets/svg/expense.svg',
icon: 'assets/svg/list.svg',
cssClass: 'capture-receipt',
handler: undefined,
},
Expand All @@ -77,7 +77,7 @@ export const expectedActionSheetButtonsWithPerDiem = [
},
{
text: 'Add Manually',
icon: 'assets/svg/expense.svg',
icon: 'assets/svg/list.svg',
cssClass: 'capture-receipt',
handler: undefined,
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/models/task-icon.enum.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export enum TaskIcon {
REPORT = 'expense',
REPORT = 'list',
WARNING = 'warning-outline',
ADVANCE = 'wallet',
MOBILE = 'phone',
Expand Down
2 changes: 1 addition & 1 deletion src/app/fyle/dashboard/dashboard.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export class DashboardPage {
},
{
text: 'Add Manually',
icon: 'assets/svg/expense.svg',
icon: 'assets/svg/list.svg',
cssClass: 'capture-receipt',
handler: this.actionSheetButtonsHandler('Add Manually', 'add_edit_expense'),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class="task--icon"
[ngClass]="{
'task--icon__warning': task.icon === 'warning-outline',
'task--icon__expense': task.icon === 'expense',
'task--icon__expense': task.icon === 'list',
'task--icon__advance': task.icon === 'wallet',
'task--icon__mobile': task.icon === 'phone'
}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div>
<img
class="add-expense-popover-internal--icon"
src="../../../../assets/svg/create-expense.svg"
src="../../../../assets/svg/create-list.svg"
alt="createExpense"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/fyle/my-expenses-v2/my-expenses-v2.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export class MyExpensesV2Page implements OnInit {
},
{
text: 'Add Manually',
icon: 'assets/svg/expense.svg',
icon: 'assets/svg/list.svg',
cssClass: 'capture-receipt',
handler: this.actionSheetButtonsHandler('Add Expense', 'add_edit_expense'),
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/fyle/my-expenses/my-expenses.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export class MyExpensesPage implements OnInit {
},
{
text: 'Add Manually',
icon: 'assets/svg/expense.svg',
icon: 'assets/svg/list.svg',
cssClass: 'capture-receipt',
handler: this.actionSheetButtonsHandler('Add Expense', 'add_edit_expense'),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}

&--success {
fill: $green !important;
color: $green !important;
}

&--timestamp {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<ion-icon
class="expenses-card--receipt-icon"
*ngIf="!expense.file_ids?.length"
[src]="'../../../../assets/svg/expense.svg'"
[src]="'../../../../assets/svg/list.svg'"
></ion-icon>
</div>
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ describe('ExpensesCardComponent', () => {
};
component.getReceipt();
fixture.detectChanges();
expect(component.receiptIcon).toEqual('assets/svg/expense.svg');
expect(component.receiptIcon).toEqual('assets/svg/list.svg');
});

it('should set isReceiptPresent to true if not a mileage or per diem expense and file ids present', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class ExpensesCardComponent implements OnInit {
if (!this.expense.file_ids?.length) {
this.receiptIcon = 'assets/svg/list-plus.svg';
if (this.isFromPotentialDuplicates || this.isFromViewReports) {
this.receiptIcon = 'assets/svg/expense.svg';
this.receiptIcon = 'assets/svg/list.svg';
}
} else {
this.isReceiptPresent = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<ion-icon
class="expenses-card--receipt-icon"
*ngIf="!expense.tx_dataUrls?.length"
[src]="'../../../../assets/svg/expense.svg'"
[src]="'../../../../assets/svg/list.svg'"
></ion-icon>
</div>
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ describe('ExpensesCardComponent', () => {
};
component.getReceipt();
fixture.detectChanges();
expect(component.receiptIcon).toEqual('assets/svg/expense.svg');
expect(component.receiptIcon).toEqual('assets/svg/list.svg');
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class ExpensesCardComponent implements OnInit {
if (!this.expense.tx_file_ids) {
this.receiptIcon = 'assets/svg/list-plus.svg';
if (this.isFromPotentialDuplicates || this.isFromViewReports) {
this.receiptIcon = 'assets/svg/expense.svg';
this.receiptIcon = 'assets/svg/list.svg';
}
} else {
this.isReceiptPresent = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
&--radio {
font-size: 20px;
margin-right: 16px;
fill: $black;
color: $black;
min-width: 20px;
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/icon/icon.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ export class IconModule {
'clear.svg',
'clock.svg',
'crop.svg',
'cross.svg',
'danger-fill.svg',
'dashboard.svg',
'duplicate.svg',
'envelope.svg',
'expense.svg',
'fyle-logo-dark.svg',
'fyle-logo-light.svg',
'file-lightning-indicator.svg',
Expand Down
2 changes: 1 addition & 1 deletion src/assets/svg/check-square-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions src/assets/svg/expense.svg

This file was deleted.

0 comments on commit 4b7102d

Please sign in to comment.