Skip to content

Commit

Permalink
apply changes code review
Browse files Browse the repository at this point in the history
  • Loading branch information
demetriusfeijoo committed Jan 5, 2024
1 parent a83dd8c commit 016af1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions picker-starter/src/data/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ export type MockCategory = {
name: string
}

// TODO this should become a tree
export const categoryMockAssets: MockCategory[] = [
export const categories: MockCategory[] = [
{
name: 'Kitchen',
},
Expand Down
4 changes: 2 additions & 2 deletions picker-starter/src/picker.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { categoryMockAssets, items } from '@/data'
import { categories, items } from '@/data'
import { defineConfig, matchCategories, matchSearchTerm } from '@/core'
import { StoryblokIcon } from './components'
import { getPage } from './utils'
Expand Down Expand Up @@ -44,7 +44,7 @@ export default defineConfig((options) => ({
label: 'Categories',
name: 'categoryMulti',
defaultValue: [],
options: categoryMockAssets.map((category) => ({
options: categories.map((category) => ({
label: category.name,
value: category.name,
})),
Expand Down

0 comments on commit 016af1d

Please sign in to comment.