Skip to content

Commit cf5bb7a

Browse files
committed
Lint fixes
1 parent 2b428d0 commit cf5bb7a

File tree

7 files changed

+15
-31
lines changed

7 files changed

+15
-31
lines changed

src/apps/review/src/lib/components/AiReviewsTable/AiReviewsTable.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@ const AiReviewsTable: FC<AiReviewsTableProps> = props => {
144144
<td className={styles.scoreCol}>
145145
{run.status === 'SUCCESS' ? (
146146
run.workflow.scorecard ? (
147-
<a href={`./ai-scorecard/${props.submission.id}/${run.workflow.id}`}>{run.score}</a>
147+
<a
148+
href={`./ai-scorecard/${props.submission.id}/${run.workflow.id}`}
149+
>
150+
{run.score}
151+
</a>
148152
) : run.score
149153
) : '-'}
150154
</td>
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
import { FC } from 'react'
22

3-
import styles from './ScorecardAttachments.module.scss'
3+
// import styles from './ScorecardAttachments.module.scss'
44

55
interface ScorecardAttachmentsProps {
6+
className?: string
67
}
78

8-
const ScorecardAttachments: FC<ScorecardAttachmentsProps> = props => {
9-
10-
return (
11-
<div className={styles.wrap}>
12-
attachments
13-
</div>
14-
)
15-
}
9+
const ScorecardAttachments: FC<ScorecardAttachmentsProps> = props => (
10+
<div className={props.className}>
11+
attachments
12+
</div>
13+
)
1614

1715
export default ScorecardAttachments

src/apps/review/src/lib/components/Scorecard/ScorecardTabsLayout/ScorecardTabsLayout.module.scss

Whitespace-only changes.

src/apps/review/src/lib/components/Scorecard/ScorecardTabsLayout/ScorecardTabsLayout.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/apps/review/src/lib/components/Scorecard/ScorecardTabsLayout/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
export * from './ScorecardViewer'
2-
export * from './ScorecardTabsLayout'

src/apps/review/src/pages/ai-scorecards/AiScorecardViewer/AiScorecardViewer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import { AiScorecardContextModel, SelectOption } from '../../../lib/models'
1010
import { AiWorkflowsSidebar } from '../components/AiWorkflowsSidebar'
1111
import { ScorecardViewer } from '../../../lib/components/Scorecard'
1212
import { AiWorkflowRunItemsResponse, useFetchAiWorkflowsRunItems } from '../../../lib/hooks'
13+
import { ScorecardAttachments } from '../../../lib/components/Scorecard/ScorecardAttachments'
1314

1415
import styles from './AiScorecardViewer.module.scss'
15-
import { ScorecardAttachments } from '../../../lib/components/Scorecard/ScorecardAttachments'
1616

1717
const tabItems: SelectOption[] = [
18-
{ label: 'Scorecard', value: 'scorecard'},
18+
{ label: 'Scorecard', value: 'scorecard' },
1919
{ label: 'Attachments', value: 'attachments' },
2020
]
2121

@@ -29,7 +29,7 @@ const AiScorecardViewer: FC = () => {
2929
[],
3030
)
3131

32-
const [selectedTab, setSelectedTab] = useState('scorecard');
32+
const [selectedTab, setSelectedTab] = useState('scorecard')
3333

3434
useEffect(() => {
3535
const notification = showBannerNotification({

0 commit comments

Comments
 (0)