Archived
front solution
This commit is contained in:
1 parent
d3d342b848
commit
134ecb4b44
16 files changed
+93
-3
No files matched your search
@@ -13,6 +13,7 @@ const initialState: IssueState = {
|
||||
photos: [],
|
||||
status: 'new',
|
||||
type: 'problem',
|
||||
comments: [],
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
@@ -23,6 +24,7 @@ const initialState: IssueState = {
|
||||
photos: [],
|
||||
status: 'new',
|
||||
type: 'problem',
|
||||
comments: [],
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
@@ -33,6 +35,7 @@ const initialState: IssueState = {
|
||||
photos: [],
|
||||
status: 'new',
|
||||
type: 'problem',
|
||||
comments: [],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -7,3 +7,8 @@ export const selectAllIssues = createSelector(
|
||||
selectIssueFeatureState,
|
||||
(state) => state.issues
|
||||
);
|
||||
|
||||
export const selectIssue = (id: string) =>
|
||||
createSelector(selectAllIssues, (issues) =>
|
||||
issues.find((issue) => issue.id === id)
|
||||
);
|
||||
Reference in new issue
Block a user