-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: wrote DB migration for user gender * fix: removed 'Other' gender * feat: fully implemented user gender in backend * fix: set user gender to non-nullable * dev(frontend): added pronouns and gender field on signup * fix: re-arranged gender options * fix: user signup works with gender --------- Co-authored-by: m4ch374 <[email protected]>
- Loading branch information
Showing
10 changed files
with
93 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ALTER TABLE users | ||
DROP COLUMN gender; | ||
|
||
DROP TYPE user_gender; |
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,4 @@ | ||
CREATE TYPE user_gender AS ENUM ('Female', 'Male', 'Unspecified'); | ||
|
||
ALTER TABLE users | ||
ADD COLUMN gender user_gender DEFAULT 'Unspecified' NOT NULL; |
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
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
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,17 @@ | ||
import tw from "twin.macro"; | ||
|
||
import type { ReactNode } from "react"; | ||
import type React from "react"; | ||
|
||
const Select = tw.select` | ||
form-select w-96 rounded-md | ||
border-gray-300 shadow-sm | ||
transition hocus:border-blue-300 focus:(ring ring-blue-200/50) | ||
`; | ||
|
||
const Label = tw.label`flex flex-col`; | ||
const LabelText: React.FC<{ children: ReactNode }> = ({ children }) => ( | ||
<span tw="text-gray-700">{children}</span> | ||
); | ||
|
||
export default Object.assign(Select, { Label, LabelText }); |
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