Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
2 changes: 1 addition & 1 deletion public/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* tslint:disable */

/**
* Mock Service Worker (0.49.2).
* Mock Service Worker (0.49.3).
* @see https://github.com/mswjs/msw
* - Please do NOT modify this file.
* - Please do NOT serve this file on production.
Expand Down
4 changes: 2 additions & 2 deletions src/components/tasks/card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const Card: FC<Props> = ({
) {
if (event.key === 'Enter') {
const toChange: any = cardDetails;
toChange[changedProperty] = stripHtml(assigneeName);
toChange[changedProperty] = stripHtml(event.target.innerHTML);

if (
changedProperty === 'endsOn' ||
Expand All @@ -150,10 +150,10 @@ const Card: FC<Props> = ({
new Date(`${event.target.value}`).getTime() / 1000;
toChange[changedProperty] = toTimeStamp;
}
console.log(toChange);

onContentChange(toChange.id, {
[changedProperty]: toChange[changedProperty],
status: 'ASSIGNED',
});
}
}
Expand Down
33 changes: 26 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"compilerOptions": {
"lib": ["dom", "es2017"],
"lib": [
"dom",
"es2017"
],
"jsx": "preserve",
"strict": true,
"target": "es5",
Expand All @@ -17,18 +20,34 @@
"isolatedModules": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
"@/*": [
"src/*"
]
},
"incremental": true
"incremental": true,
"plugins": [
{
"name": "next"
}
]
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"src/**/*.ts",
"src/**/*.tsx",
"__tests__/**/*.tsx"
, "__mocks__/styleMock.ts", "server.ts" ],
"exclude": ["node_modules"],
"types": ["node", "jest", "@testing-library/jest-dom"]
"__tests__/**/*.tsx",
"__mocks__/styleMock.ts",
"server.ts",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
],
"types": [
"node",
"jest",
"@testing-library/jest-dom"
]
}