-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Query Migration #1656
React Query Migration #1656
Conversation
rejected: number; | ||
}; | ||
|
||
type Sizes = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u can make this a record with enums
import { db } from "@/utils/firebase"; | ||
import { collection, doc, getDoc, getDocs } from "firebase/firestore"; | ||
|
||
type Status = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it a record with enums
XXL?: number; | ||
}; | ||
|
||
interface Stats { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
record with enums
admins: Status | Sizes; | ||
} | ||
|
||
type Event = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
record
}; | ||
|
||
const size = { | ||
teams: { ...defaultShirts }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cant u just say teams: defaultShirts
Migration Progress:
CheckIn
Events
Statistics