Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Oct 23, 2023
1 parent c0975ea commit 510f80a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const columns: Column<ReviewEntriesWord>[] = [
field: ReviewEntriesWordField.Senses,
disableClick: true,
render: (rowData: ReviewEntriesWord) => (
<DefinitionCell value={rowData.senses} rowData={rowData} />
<DefinitionCell rowData={rowData} value={rowData.senses} />
),
editComponent: (props: FieldParameterStandard) => (
<DefinitionCell {...props} editable />
Expand Down Expand Up @@ -153,7 +153,7 @@ const columns: Column<ReviewEntriesWord>[] = [
field: ReviewEntriesWordField.Senses,
disableClick: true,
render: (rowData: ReviewEntriesWord) => (
<GlossCell value={rowData.senses} rowData={rowData} />
<GlossCell rowData={rowData} value={rowData.senses} />
),
editComponent: (props: FieldParameterStandard) => (
<GlossCell {...props} editable />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,11 @@ export const reviewEntriesReducer = (
switch (action.type) {
case ReviewEntriesActionTypes.SortBy:
// Change which column is being sorted by
return {
...state,
sortBy: action.sortBy,
};
return { ...state, sortBy: action.sortBy };

case ReviewEntriesActionTypes.UpdateAllWords:
// Update the local words
return {
...state,
words: action.words,
};
return { ...state, words: action.words };

case ReviewEntriesActionTypes.UpdateWord:
// Update the word of specified id
Expand Down

0 comments on commit 510f80a

Please sign in to comment.