-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ [#390] Remove unused fields frontend
- Loading branch information
1 parent
89bc829
commit 673b46f
Showing
7 changed files
with
3 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,9 @@ import { Role, User } from "../lib/api/auth"; | |
import { createArrayFactory, createObjectFactory } from "./factory"; | ||
|
||
const FIXTURE_ROLE = { | ||
name: "Test Role", | ||
canStartDestruction: false, | ||
canReviewDestruction: false, | ||
canReviewFinalList: false, | ||
canViewCaseDetails: true, | ||
}; | ||
export const roleFactory = createObjectFactory<Role>(FIXTURE_ROLE); | ||
|
||
|
@@ -26,11 +24,9 @@ const FIXTURE_RECORD_MANAGER: User = { | |
lastName: "Manager", | ||
email: "[email protected]", | ||
role: { | ||
name: "recordmanager", | ||
canStartDestruction: true, | ||
canReviewDestruction: false, | ||
canReviewFinalList: false, | ||
canViewCaseDetails: false, | ||
}, | ||
}; | ||
|
||
|
@@ -41,11 +37,9 @@ const FIXTURE_BEOORDELAAR: User = { | |
lastName: "del Laar", | ||
email: "[email protected]", | ||
role: { | ||
name: "beoordelaar", | ||
canStartDestruction: false, | ||
canReviewDestruction: true, | ||
canReviewFinalList: false, | ||
canViewCaseDetails: false, | ||
}, | ||
}; | ||
|
||
|
@@ -56,11 +50,9 @@ const FIXTURE_PROCES_EIGENAAR: User = { | |
lastName: "ei Genaar", | ||
email: "[email protected]", | ||
role: { | ||
name: "proceseigenaar", | ||
canStartDestruction: false, | ||
canReviewDestruction: true, | ||
canReviewFinalList: false, | ||
canViewCaseDetails: false, | ||
}, | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,11 +57,9 @@ const meta: Meta<typeof DestructionListCreatePage> = { | |
lastName: "Doe", | ||
email: "[email protected]", | ||
role: { | ||
name: "Admin", | ||
canStartDestruction: true, | ||
canReviewDestruction: true, | ||
canReviewFinalList: false, | ||
canViewCaseDetails: true, | ||
}, | ||
}, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters