Updating the theme selector and made things look better on mobile
This commit is contained in:
@@ -3,7 +3,7 @@ import { get_fest_counts, add_fest_counts } from '$lib/db'
|
||||
export async function load() {
|
||||
console.log('click')
|
||||
let { people, tents, cars, year } = await get_fest_counts()
|
||||
console.log({ people, tents, cars, year })
|
||||
// console.log({ people, tents, cars, year })
|
||||
return {
|
||||
people,
|
||||
tents,
|
||||
@@ -12,13 +12,13 @@ export async function load() {
|
||||
}
|
||||
}
|
||||
export const actions = {
|
||||
default: async ({ cookies, fetch, getClientAddress, locals, params, platform, request, route, setHeaders, url, isDataRequest }) => {
|
||||
default: async ({ request }) => {
|
||||
const data = await request.formData()
|
||||
console.log("save", data)
|
||||
const people = parseInt(data.get("people"))
|
||||
const tents = parseInt(data.get("tents"))
|
||||
const cars = parseInt(data.get("cars"))
|
||||
// console.log("save", data)
|
||||
const people = parseInt(String(data.get("people")))
|
||||
const tents = parseInt(String(data.get("tents")))
|
||||
const cars = parseInt(String(data.get("cars")))
|
||||
const reply = add_fest_counts(people, tents, cars, 25)
|
||||
console.log("reply", reply)
|
||||
console.log("clicked", reply)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user