-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start scanning + better ticket showtime UI
Co-Authored-By: Bloxs <[email protected]>
- Loading branch information
1 parent
b4f3c7b
commit 2ffd220
Showing
13 changed files
with
388 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,12 @@ | |
"yup": "https://esm.sh/[email protected]", | ||
"imagekit": "npm:[email protected]", | ||
"barcode-polyfill": "https://esm.sh/[email protected]", | ||
|
||
// Tailwind my beloved | ||
"tailwindcss": "npm:[email protected]", | ||
"tailwindcss/": "npm:/[email protected]/", | ||
"tailwindcss/plugin": "npm:/[email protected]/plugin.js" | ||
"tailwindcss/plugin": "npm:/[email protected]/plugin.js", | ||
"@tailwindcss/typography": "npm:@tailwindcss/typography" | ||
}, | ||
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" }, | ||
"exclude": ["**/_fresh/*"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { useSignal } from "@preact/signals"; | ||
import SelectShowTime from "../viewing/selectShowTime.tsx"; | ||
import { ShowTime } from "@/utils/db/kv.types.ts"; | ||
|
||
const ShowtimeSelector = ({ | ||
defaultShowTime, | ||
showTimes, | ||
}: { | ||
defaultShowTime: string; | ||
showTimes: Partial<ShowTime>[]; | ||
}) => { | ||
const changeOpen = useSignal(false); | ||
|
||
const setShowTime = (showTime: string) => { | ||
if (showTime == defaultShowTime) return; | ||
const url = new URL(window.location.href); | ||
|
||
url.searchParams.set("id", showTime); | ||
|
||
location.href = url.toString(); | ||
}; | ||
|
||
return ( | ||
<div class="mt-8 mb-2 ml-auto"> | ||
<SelectShowTime | ||
all={true} | ||
changeOpen={changeOpen} | ||
showTime={defaultShowTime} | ||
showTimes={showTimes} | ||
setShowTime={setShowTime} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ShowtimeSelector; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.