Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1176] Remove Reset Button in Last Response Column #1177

Merged
Merged
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
2 changes: 1 addition & 1 deletion frontend/src/components/EditableCell.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const EditableCell = ({
disabled = false,
readonly = false,
isPublic = false,
resetButton,
resetButton = {},
lastValue = false,
}) => {
const [editing, setEditing] = useState(false);
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/pages/approvals/ApprovalDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ const ApprovalDetail = ({
),
width: "25%",
},
Table.EXPAND_COLUMN,
{
title: text?.lastResponseCol,
render: (row) => (
Expand All @@ -526,12 +527,10 @@ const ApprovalDetail = ({
resetCell={resetCell}
disabled={true}
readonly={true}
resetButton={resetButton}
/>
),
width: "25%",
},
Table.EXPAND_COLUMN,
]}
expandable={{
expandIcon: ({ onExpand, record }) => {
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/pages/submissions/SubmissionEditing.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const SubmissionEditing = ({
),
width: "25%",
},
Table.EXPAND_COLUMN,
{
title: text?.lastResponseCol,
render: (row) => (
Expand All @@ -90,12 +91,10 @@ const SubmissionEditing = ({
resetCell={resetCell}
disabled={true}
readonly={true}
resetButton={resetButton}
/>
),
width: "25%",
},
Table.EXPAND_COLUMN,
]}
expandable={{
expandIcon: ({ onExpand, record }) => {
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/pages/submissions/UploadDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ const UploadDetail = ({ record, setReload }) => {
),
width: "25%",
},
Table.EXPAND_COLUMN,
{
title: text?.lastResponseCol,
render: (row) => (
Expand All @@ -457,12 +458,10 @@ const UploadDetail = ({ record, setReload }) => {
resetCell={resetCell}
disabled={true}
readonly={true}
resetButton={resetButton}
/>
),
width: "25%",
},
Table.EXPAND_COLUMN,
]}
expandable={{
expandIcon: ({ onExpand, record }) => {
Expand Down