Chandresh
Chandresh
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Chandresh on 3/27/2024 in #questions
trying add variable for dark mode with prefered theme and "dark" class.q
Currently what I am doing is using declaring same variable twice for each condition can i do this better.
:root {
--background: 240 5% 96%;
}

@media (prefers-color-scheme: dark) {
:root {
--background: 0 3% 6%;
}
}

.dark {
--background: 0 3% 6%;

}
:root {
--background: 240 5% 96%;
}

@media (prefers-color-scheme: dark) {
:root {
--background: 0 3% 6%;
}
}

.dark {
--background: 0 3% 6%;

}
1 replies
TTCTheo's Typesafe Cult
Created by Chandresh on 2/26/2024 in #questions
Getting value.map is not a function in inArray(properties.amenities, amenities)); drizzle
While filtering an table I am using has column ammenities for which we are using an enum array
export const AmmenitiesEnum = pgEnum("ammenities", [
"Shopping centres/malls",
"Health care facilities",
"Schools and colleges/universities",
"Parks and Gardens",
"Public Trasnport facilty",
"Fuel Station",
"Other Recreational facilities",
]);
export const AmmenitiesEnum = pgEnum("ammenities", [
"Shopping centres/malls",
"Health care facilities",
"Schools and colleges/universities",
"Parks and Gardens",
"Public Trasnport facilty",
"Fuel Station",
"Other Recreational facilities",
]);
this is the ENUM
amenities: AmmenitiesEnum("ammenites").array(),
amenities: AmmenitiesEnum("ammenites").array(),
this is the schema
2 replies
DTDrizzle Team
Created by Chandresh on 2/26/2024 in #help
Getting value.map is not a function in conditions.push(inArray(properties.amenities, amenities));
While filtering an table I am using has column ammenities for which we are using an enum array
export const AmmenitiesEnum = pgEnum("ammenities", [
"Shopping centres/malls",
"Health care facilities",
"Schools and colleges/universities",
"Parks and Gardens",
"Public Trasnport facilty",
"Fuel Station",
"Other Recreational facilities",
]);
export const AmmenitiesEnum = pgEnum("ammenities", [
"Shopping centres/malls",
"Health care facilities",
"Schools and colleges/universities",
"Parks and Gardens",
"Public Trasnport facilty",
"Fuel Station",
"Other Recreational facilities",
]);
this is the ENUM
amenities: AmmenitiesEnum("ammenites").array(),
amenities: AmmenitiesEnum("ammenites").array(),
this is the schema
1 replies