feat: add expense income category detail component
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
<mw-expense-income-base-detail [iconProps]="iconProps()" [amountProps]="amountProps()">
|
||||||
|
<mw-expense-icome-detail-box slot="content">
|
||||||
|
<mw-typography
|
||||||
|
color="var(--mw-gray-500)"
|
||||||
|
size="1.2rem"
|
||||||
|
weight="800"
|
||||||
|
>{{whom()}}</mw-typography>
|
||||||
|
<mw-typography
|
||||||
|
color="var(--mw-gray-500)"
|
||||||
|
size="1.2rem"
|
||||||
|
>{{category()}}</mw-typography>
|
||||||
|
<mw-typography
|
||||||
|
color="var(--mw-gray-400)"
|
||||||
|
size="1.1rem"
|
||||||
|
font="var(--mw-font-light-italic)"
|
||||||
|
weight="800"
|
||||||
|
>{{description()}}</mw-typography>
|
||||||
|
</mw-expense-icome-detail-box>
|
||||||
|
</mw-expense-income-base-detail>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { ExpenseIncomeCategoryDetailComponent } from './expense-income-category-detail.component';
|
||||||
|
|
||||||
|
describe('ExpenseIncomeCategoryDetailComponent', () => {
|
||||||
|
let component: ExpenseIncomeCategoryDetailComponent;
|
||||||
|
let fixture: ComponentFixture<ExpenseIncomeCategoryDetailComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [ExpenseIncomeCategoryDetailComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(ExpenseIncomeCategoryDetailComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
import { Component, input } from '@angular/core';
|
||||||
|
import { ExpenseIncomeBaseDetailComponent } from "../expense-income-base-detail/expense-income-base-detail.component";
|
||||||
|
import { TypographyComponent } from "../../../../../../dist/my-wallet-ds";
|
||||||
|
import { ExpenseIcomeDetailBoxComponent } from "../../atoms/expense-icome-detail-box/expense-icome-detail-box.component";
|
||||||
|
import { AbstractExpenseIncomeDetailComponent } from '../abstract-expense-income-detail/abstract-expense-income-detail.component';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'mw-expense-income-category-detail',
|
||||||
|
standalone: true,
|
||||||
|
imports: [ExpenseIncomeBaseDetailComponent, TypographyComponent, ExpenseIcomeDetailBoxComponent],
|
||||||
|
templateUrl: './expense-income-category-detail.component.html',
|
||||||
|
styles: ''
|
||||||
|
})
|
||||||
|
export class ExpenseIncomeCategoryDetailComponent extends AbstractExpenseIncomeDetailComponent{
|
||||||
|
category = input('')
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user