feat(SW-302): switch out mock data for facility cards
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import type {
|
||||
Facility,
|
||||
FacilityCard,
|
||||
} from "@/types/components/hotelPage/facilities"
|
||||
import type { Facility } from "@/types/components/hotelPage/facilities"
|
||||
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
|
||||
export function sortCards(grid: Facility) {
|
||||
const sortedCards = grid.slice(0).sort((a: FacilityCard, b: FacilityCard) => {
|
||||
const sortedCards = grid.slice(0).sort((a: CardProps, b: CardProps) => {
|
||||
if (!a.backgroundImage && b.backgroundImage) {
|
||||
return 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user