Skip to content

Commit

Permalink
feat(FOROME-1301): show drawer by default, show Gallery layout by def…
Browse files Browse the repository at this point in the history
…ault
  • Loading branch information
QSdmitrioul committed Jul 1, 2022
1 parent 9a12944 commit 9b5aba1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/ws/ui/variant-drawer/variant-drawer.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const presetsSortComparator = (
}

class VariantDrawerStore {
public layoutMode: VariantDrawerLayoutMode
public layoutMode: VariantDrawerLayoutMode = VariantDrawerLayoutMode.Gallery
public galleryActiveAspect = ''

private readonly customGridPresets: IVariantDrawerGridPreset[]
Expand Down Expand Up @@ -128,7 +128,7 @@ class VariantDrawerStore {
const data: Partial<IVariantDrawerData> | undefined =
LocalStoreManager.read('variantDrawer')
return {
mode: data?.mode ?? VariantDrawerLayoutMode.Grid,
mode: data?.mode ?? VariantDrawerLayoutMode.Gallery,
presets: data?.presets ?? [],
preset: data?.preset ?? null,
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/ws/ws.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const WSPage = observer((): ReactElement => {

conditions.forEach(condition => filterStore.addCondition(condition))
}
variantStore.showVariant(0)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])

Expand Down

0 comments on commit 9b5aba1

Please sign in to comment.