-
Notifications
You must be signed in to change notification settings - Fork 14
Topcoder Admin App - Marathon Match Functionality #1092
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ import styles from './SubmissionTable.module.scss' | |
|
||
interface Props { | ||
className?: string | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider renaming |
||
datas: Submission[] | ||
data: Submission[] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable name |
||
isRemovingSubmission: IsRemovingType | ||
doRemoveSubmission: (item: Submission) => void | ||
isRemovingReviewSummations: IsRemovingType | ||
|
@@ -196,11 +196,11 @@ export const SubmissionTable: FC<Props> = (props: Props) => { | |
return ( | ||
<TableWrapper className={classNames(styles.container, props.className)}> | ||
{isTablet ? ( | ||
<TableMobile columns={columnsMobile} data={props.datas} /> | ||
<TableMobile columns={columnsMobile} data={props.data} /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The prop |
||
) : ( | ||
<Table | ||
columns={columns} | ||
data={props.datas} | ||
data={props.data} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The prop |
||
removeDefaultSort | ||
onToggleSort={_.noop} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
className={styles.desktopTable} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,7 +94,7 @@ export const SubmissionTableActions: FC<Props> = (props: Props) => { | |
className={classNames({ | ||
disabled: | ||
props.isRemovingReviewSummations[props.data.id] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The condition There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @suppermancool - Can you fix please? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jmgasper done in the latest commit |
||
|| !(props.data.reviewSummation ?? []).length, | ||
|| !props.data.reviewSummation?.length, | ||
})} | ||
onClick={function onClick() { | ||
props.setShowConfirmDeleteReviewsDialog(props.data) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* Request to bust api | ||
* Request to bus API | ||
*/ | ||
export interface RequestBusAPI { | ||
topic: string | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ export function toFixed( | |
return num | ||
} | ||
|
||
if (_.isNaN(parseFloat(num as string))) return num as number | ||
if (Number.isNaN(Number(num))) return num as number | ||
const numFloat = parseFloat(num as string) | ||
|
||
const result = _.toFinite(toAcurateFixed(numFloat, decimal)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The use of |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The prop name
datas
has been changed todata
. Ensure that this change is consistent throughout the codebase where this component is used to prevent any potential issues.