Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ const config = {
isCloseable: true,
backgroundColor: "#4d5061",
},


metadata: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/components/popup/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const Popup = ({ status, message }) => {
</div>
);
};
export default Popup;
export default Popup;
10 changes: 5 additions & 5 deletions src/pages/contact/Contact.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

.main__contact_ud_wrapper {
margin-top: 1rem;
align-items: center;
align-items: center;
}

.ud_contact_title {
Expand All @@ -62,7 +62,7 @@
flex-wrap: wrap;
gap: 10px;
margin: 8rem auto auto auto;

}

.contact_info_item {
Expand Down Expand Up @@ -128,7 +128,7 @@

.main__contact_contains_right .form_container .form_group .phone_input {
background-color: transparent;
color: var(--ifm-text-color);
color: var(--ifm-text-color);
}

.main__contact_contains_right .form_container .form_group .form_select {
Expand Down Expand Up @@ -204,6 +204,6 @@
animation: spinner 1s infinite linear;
margin: auto;
}
@keyframes spinner{
@keyframes spinner{
100%{transform: rotate(1turn)}
}
}
14 changes: 7 additions & 7 deletions src/pages/contact/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export default function Contact(): JSX.Element {
// Function to handle form submission
const handleSubmit = async (e: FormEvent<HTMLFormElement>) => {
e.preventDefault();

setChecker((prev) => ({ ...prev, loading: true }));

try {
// Sending form data to the backend with correct headers
const response = await axios.post(
Expand All @@ -81,7 +81,7 @@ export default function Contact(): JSX.Element {
},
}
);

// Resetting form values after submission
setFormValues({
fullName: "",
Expand All @@ -90,8 +90,8 @@ export default function Contact(): JSX.Element {
message: "",
feedbackType: "Question",
otherFeedback: "",
});
});

if (response.data.ok) {
setChecker((prev) => ({
...prev,
Expand All @@ -116,7 +116,7 @@ export default function Contact(): JSX.Element {
loading: false,
}));
}

// Hide popup after 2 seconds
setTimeout(() => {
setChecker((prev) => ({
Expand Down Expand Up @@ -337,7 +337,7 @@ export default function Contact(): JSX.Element {
name="feedbackType"
value={formValues.feedbackType}
onChange={handleInputChange}
className={styles.form_select}
className={styles.form_select}
required
>
<option value="Question">Question</option>
Expand Down
8 changes: 4 additions & 4 deletions src/sw.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {registerRoute} from 'workbox-routing';
import {StaleWhileRevalidate} from 'workbox-strategies';
import { registerRoute } from "workbox-routing";
import { StaleWhileRevalidate } from "workbox-strategies";

export default function swCustom(params) {
if (params.debug) {
console.log('[CodeHarborHub-PWA][SW]: running swCustom code', params);
console.log("[CodeHarborHub-PWA][SW]: running swCustom code", params);
}

// Cache responses from external resources
Expand All @@ -14,4 +14,4 @@ export default function swCustom(params) {
/avatars1\.githubusercontent/,
].some((regex) => context.url.href.match(regex));
}, new StaleWhileRevalidate());
}
}
Loading