Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmodghnaj committed Nov 1, 2023
1 parent fc87575 commit 2ef872d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion components/info-account.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { User } from "@/services/auth/type";
import { BsFillInfoSquareFill } from "react-icons/bs";

function convertToYYYMMDD(isoDateString: string): string {
function convertToYYYMMDD(isoDateString: string | undefined): string {
if (!isoDateString) return "--";
const originalDate = new Date(isoDateString);

const year = originalDate.getFullYear();
Expand Down
2 changes: 1 addition & 1 deletion customization/themes/theming/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
return input;
}

const resultObj = {};
const resultObj: any = {};

Object.entries(input).forEach(([rule, value]) => {
if (colorNames.hasOwnProperty(rule)) {
Expand Down
4 changes: 2 additions & 2 deletions services/auth/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export interface User {
lastName: string;
email: string;
status: 1 | 2; // 1 validation email - 2 not validation email yet
createdAt: Date;
updatedAt: Date;
createdAt: string;
updatedAt: string;
id: string;
}

Expand Down

0 comments on commit 2ef872d

Please sign in to comment.