Skip to content

Commit 7d1ec6a

Browse files
author
som1
committed
fix: resolve ESLint and Prettier formatting issues
1 parent a609baa commit 7d1ec6a

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

apps/landing/src/app/test-case/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { TestCaseProvider } from '@/components/test-case/TestCaseProvider'
1414
import { TestCaseRuleContainer } from '@/components/test-case/TestCaseRuleContainer'
1515
import { TestCaseStat } from '@/components/test-case/TestCaseStat'
1616
import { TestCaseTypeToggle } from '@/components/test-case/TestCaseTypeToggle'
17-
import { TEST_CASE_FILTERS, createFilterMap } from '@/constants'
17+
import { createFilterMap, TEST_CASE_FILTERS } from '@/constants'
1818
import { TestStatusMap } from '@/types'
1919

2020
export const metadata: Metadata = {
@@ -32,7 +32,7 @@ export default async function TestCasePage() {
3232
JSON.parse(data),
3333
) as Promise<Record<string, { title: string; description: string }>>,
3434
])
35-
35+
3636
// Dynamically create filter map based on rule_map keys
3737
const filterMap = createFilterMap(Object.keys(ruleMap))
3838
let totalTest = 0
@@ -90,7 +90,7 @@ export default async function TestCasePage() {
9090
})
9191

9292
return (
93-
<TestCaseProvider testStatusMap={testStatus} filterMap={filterMap}>
93+
<TestCaseProvider filterMap={filterMap} testStatusMap={testStatus}>
9494
<Box maxW="1520px" mx="auto" pb="40px" w="100%">
9595
<VStack
9696
gap="20px"
@@ -181,4 +181,4 @@ export default async function TestCasePage() {
181181
</Box>
182182
</TestCaseProvider>
183183
)
184-
}
184+
}

apps/landing/src/components/test-case/TestCaseProvider.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ export function TestCaseProvider({
5757

5858
return (
5959
<TestCaseContext.Provider
60-
value={{ testStatusMap, filterMap, options, onChangeOptions: handleChangeOptions }}
60+
value={{
61+
filterMap,
62+
onChangeOptions: handleChangeOptions,
63+
options,
64+
testStatusMap,
65+
}}
6166
>
6267
{children}
6368
</TestCaseContext.Provider>

apps/landing/src/constants/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ export const TEST_CASE_FILTERS: { label: string; value: TestCaseFilter }[] = [
3535
* @param ruleMapKeys - Array of rule keys from rule_map.json
3636
* @returns Filter map grouped by categories
3737
*/
38-
export function createFilterMap(ruleMapKeys: string[]): Record<TestCaseFilter, string[]> {
38+
export function createFilterMap(
39+
ruleMapKeys: string[],
40+
): Record<TestCaseFilter, string[]> {
3941
// Default all rules to korean category
4042
// Can be extended with category field in rule_map.json for classification
4143
return {

0 commit comments

Comments
 (0)