Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codealong-dev/ride-sharing
/ handleClick
Function
handleClick
web/src/app/page.tsx:39–41 ·
view source on GitHub ↗
(userType: "driver" | "rider")
Source
from the content-addressed store, hash-verified
37
const [packageSlug, setPackageSlug] = useState<CarPackageSlug | null>(null)
38
39
const handleClick = (userType:
"driver"
|
"rider"
) => {
40
setUserType(userType)
41
}
42
43
if (payment ===
'success'
) {
44
return (
Callers
1
HomeContent
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected