Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

feat: remove default grid #507

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions domains/grid/utils/defaultGridConfig.ts

This file was deleted.

4 changes: 1 addition & 3 deletions domains/grid/utils/getUserGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export const getUserGrid = async (
address: Address
): Promise<Grid<GridWidgetWithoutCords>[]> => {
let config: PartialBy<Grid<GridConfigItem>, 'id'>[]
let config: PartialBy<Grid<GridConfigItem>, 'id'>[] = []
const userConfig = await getGridConfig(address)

// if user config is invalid we load default one
Expand All @@ -16,8 +16,6 @@ export const getUserGrid = async (
if (gridLog.enabled) {
gridLog('Invalid config', userConfig)
}

config = defaultGridConfig(address)
}

return configToGrid(config)
Expand Down
Loading