refactor(SW-438): update namings
This commit is contained in:
@@ -63,7 +63,7 @@ export default function Sidebar({ blocks }: SidebarProps) {
|
|||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
||||||
case SidebarEnums.blocks.Shortcuts:
|
case SidebarEnums.blocks.QuickLinks:
|
||||||
return <ShortcutsList {...block.shortcuts} />
|
return <ShortcutsList {...block.shortcuts} />
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import { SidebarEnums } from "@/types/enums/sidebar"
|
|||||||
export const quickLinksSchema = z
|
export const quickLinksSchema = z
|
||||||
.object({
|
.object({
|
||||||
typename: z
|
typename: z
|
||||||
.literal(SidebarEnums.blocks.Shortcuts)
|
.literal(SidebarEnums.blocks.QuickLinks)
|
||||||
.optional()
|
.optional()
|
||||||
.default(SidebarEnums.blocks.Shortcuts),
|
.default(SidebarEnums.blocks.QuickLinks),
|
||||||
})
|
})
|
||||||
.merge(shortcutsBlockSchema)
|
.merge(shortcutsBlockSchema)
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ export namespace SidebarEnums {
|
|||||||
DynamicContent = "DynamicContent",
|
DynamicContent = "DynamicContent",
|
||||||
JoinLoyaltyContact = "JoinLoyaltyContact",
|
JoinLoyaltyContact = "JoinLoyaltyContact",
|
||||||
ScriptedCard = "ScriptedCard",
|
ScriptedCard = "ScriptedCard",
|
||||||
Shortcuts = "Shortcuts",
|
QuickLinks = "QuickLinks",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user