fix: resolve lint issues in settings components

- Fix react-hooks/set-state-in-effect by inlining data fetch in useEffect
- Replace useCallback-wrapped fetch functions with plain async functions
- Replace window.location.href with window.location.assign()
- Remove unused eslint-disable directives
- Fix double res.json() call in passkey refresh
This commit is contained in:
2026-04-26 11:31:01 -05:00
parent 0d477d8402
commit 18b9e5d0db
8 changed files with 167 additions and 58 deletions
+82 -2
View File
@@ -1,6 +1,6 @@
{
"id": "7f7353e5-646d-4e21-92e6-250b5b28ee50",
"prevId": "273a7a41-0813-4612-ad50-bc53aa0eac5f",
"id": "66b4e2ff-53cc-46d0-a9fd-321a378683f1",
"prevId": "7f7353e5-646d-4e21-92e6-250b5b28ee50",
"version": "7",
"dialect": "postgresql",
"tables": {
@@ -1282,6 +1282,12 @@
"primaryKey": false,
"notNull": false
},
"launch_options": {
"name": "launch_options",
"type": "text",
"primaryKey": false,
"notNull": false
},
"settings_json": {
"name": "settings_json",
"type": "jsonb",
@@ -1460,6 +1466,80 @@
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.saved_games": {
"name": "saved_games",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"user_id": {
"name": "user_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"game_id": {
"name": "game_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "timestamp",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"saved_games_user_id_user_id_fk": {
"name": "saved_games_user_id_user_id_fk",
"tableFrom": "saved_games",
"tableTo": "user",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"saved_games_game_id_games_id_fk": {
"name": "saved_games_game_id_games_id_fk",
"tableFrom": "saved_games",
"tableTo": "games",
"columnsFrom": [
"game_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"saved_games_user_game_unique": {
"name": "saved_games_user_game_unique",
"nullsNotDistinct": false,
"columns": [
"user_id",
"game_id"
]
}
},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
}
},
"enums": {
+7
View File
@@ -36,6 +36,13 @@
"when": 1777189057323,
"tag": "0005_add_preset_performance_link",
"breakpoints": true
},
{
"idx": 5,
"version": "7",
"when": 1777217663641,
"tag": "0005_brief_marvel_zombies",
"breakpoints": true
}
]
}