Delete unused code, remove logs, add dnd package.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user