Delete unused code, remove logs, add dnd package.

This commit is contained in:
Patrick Fic
2025-10-27 15:01:02 -07:00
parent bedc1f9501
commit a207d5dff7
44 changed files with 42 additions and 3137 deletions

View File

@@ -47,8 +47,6 @@ export default function GlobalSearch() {
if (!q) return;
setLoading(true);
setError(null);
// TODO: Integrate real search endpoint
console.log(`[GlobalSearch] (debounced placeholder) searching for: "${q}"`);
try {
const searchData = await axios.post(`${env.API_URL}/search`, {
search: q,

View File

@@ -105,11 +105,6 @@ export function JobDocumentsComponent({ bodyshop }) {
setFullPhotos(normalizedImages);
}
} catch (error) {
console.log(
"Error fetching photos:",
error.message,
JSON.stringify(error, null, 2)
);
setError(error.message || "Unknown error fetching photos.");
}
setLoading(false);

View File

@@ -144,7 +144,11 @@ function Tab({ bodyshop, currentUser, signOutStart }) {
"Error",
`Unable to register for notifications: ${error.message}`
);
console.log("Notification registration error:", error);
console.log(
"Notification registration error:",
error,
error.stack
);
}
}}
>
@@ -161,7 +165,9 @@ function Tab({ bodyshop, currentUser, signOutStart }) {
}`}
</Text>
<Text style={styles.paragraph}>
{`${t("settings.labels.signedinuser")} ${currentUser?.email || "Unknown"}`}
{`${t("settings.labels.signedinuser")} ${
currentUser?.email || "Unknown"
}`}
</Text>
</Card.Content>
<Card.Actions>