Skip to content

Commit

Permalink
fix: ContractTemplatePreview
Browse files Browse the repository at this point in the history
  • Loading branch information
luciatugui committed Sep 20, 2024
1 parent 42a397e commit 584ba90
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ export interface IAddDocumentContractDTO {
documentEndDate: Date;
volunteerId: string;
documentTemplateId: string;
status: 'CREATED';
}
1 change: 0 additions & 1 deletion frontend/src/common/interfaces/template.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { IOrganization } from './organization.interface';
import { IUser } from './user.interface';

export interface ITemplate {
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/components/contracts/ContractTemplatePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ export const ContractTemplatePreview = ({
getValues={getValues}
formErrors={formErrors}
/>
<Signatures />
<Signatures
organization={{
officialName: organization?.name || '',
registeredOffice: organization?.address || '',
CUI: organization?.cui || '',
legalRepresentativeName: organization?.legalReprezentativeFullName || '',
legalRepresentativeRole: organization?.legalReprezentativeRole || '',
}}
/>
</div>
);
};
2 changes: 0 additions & 2 deletions frontend/src/pages/GenerateContract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ export const GenerateContract = () => {
documentDate: volunteersData[volunteer.id].documentDate,
documentStartDate: volunteersData[volunteer.id].documentPeriod[0],
documentEndDate: volunteersData[volunteer.id].documentPeriod[1],
// todo: delete
status: volunteer.id === '907e1016-2d76-45d5-b274-549ae5b3ca13' ? 'CREATED' : '', // TODO: change to status enum value
});
success.push(volunteer.id);
setSentContractsCount((prev) => prev + 1);
Expand Down

0 comments on commit 584ba90

Please sign in to comment.