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} />
|
||||
|
||||
default:
|
||||
|
||||
@@ -7,9 +7,9 @@ import { SidebarEnums } from "@/types/enums/sidebar"
|
||||
export const quickLinksSchema = z
|
||||
.object({
|
||||
typename: z
|
||||
.literal(SidebarEnums.blocks.Shortcuts)
|
||||
.literal(SidebarEnums.blocks.QuickLinks)
|
||||
.optional()
|
||||
.default(SidebarEnums.blocks.Shortcuts),
|
||||
.default(SidebarEnums.blocks.QuickLinks),
|
||||
})
|
||||
.merge(shortcutsBlockSchema)
|
||||
|
||||
|
||||
@@ -5,6 +5,6 @@ export namespace SidebarEnums {
|
||||
DynamicContent = "DynamicContent",
|
||||
JoinLoyaltyContact = "JoinLoyaltyContact",
|
||||
ScriptedCard = "ScriptedCard",
|
||||
Shortcuts = "Shortcuts",
|
||||
QuickLinks = "QuickLinks",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user