Skip to content

Commit fe31bb0

Browse files
authored
Merge pull request #4393 from CodeHarborHub/restyled/dev-3
Restyle new update
2 parents 7424573 + 5460584 commit fe31bb0

File tree

5 files changed

+17
-18
lines changed

5 files changed

+17
-18
lines changed

docusaurus.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ const config = {
8787
isCloseable: true,
8888
backgroundColor: "#4d5061",
8989
},
90-
9190

9291
metadata: [
9392
{

src/components/popup/popup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ const Popup = ({ status, message }) => {
1111
</div>
1212
);
1313
};
14-
export default Popup;
14+
export default Popup;

src/pages/contact/Contact.module.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
.main__contact_ud_wrapper {
3737
margin-top: 1rem;
38-
align-items: center;
38+
align-items: center;
3939
}
4040

4141
.ud_contact_title {
@@ -62,7 +62,7 @@
6262
flex-wrap: wrap;
6363
gap: 10px;
6464
margin: 8rem auto auto auto;
65-
65+
6666
}
6767

6868
.contact_info_item {
@@ -128,7 +128,7 @@
128128

129129
.main__contact_contains_right .form_container .form_group .phone_input {
130130
background-color: transparent;
131-
color: var(--ifm-text-color);
131+
color: var(--ifm-text-color);
132132
}
133133

134134
.main__contact_contains_right .form_container .form_group .form_select {
@@ -204,6 +204,6 @@
204204
animation: spinner 1s infinite linear;
205205
margin: auto;
206206
}
207-
@keyframes spinner{
207+
@keyframes spinner{
208208
100%{transform: rotate(1turn)}
209-
}
209+
}

src/pages/contact/index.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ export default function Contact(): JSX.Element {
6060
// Function to handle form submission
6161
const handleSubmit = async (e: FormEvent<HTMLFormElement>) => {
6262
e.preventDefault();
63-
63+
6464
setChecker((prev) => ({ ...prev, loading: true }));
65-
65+
6666
try {
6767
// Sending form data to the backend with correct headers
6868
const response = await axios.post(
@@ -81,7 +81,7 @@ export default function Contact(): JSX.Element {
8181
},
8282
}
8383
);
84-
84+
8585
// Resetting form values after submission
8686
setFormValues({
8787
fullName: "",
@@ -90,8 +90,8 @@ export default function Contact(): JSX.Element {
9090
message: "",
9191
feedbackType: "Question",
9292
otherFeedback: "",
93-
});
94-
93+
});
94+
9595
if (response.data.ok) {
9696
setChecker((prev) => ({
9797
...prev,
@@ -116,7 +116,7 @@ export default function Contact(): JSX.Element {
116116
loading: false,
117117
}));
118118
}
119-
119+
120120
// Hide popup after 2 seconds
121121
setTimeout(() => {
122122
setChecker((prev) => ({
@@ -337,7 +337,7 @@ export default function Contact(): JSX.Element {
337337
name="feedbackType"
338338
value={formValues.feedbackType}
339339
onChange={handleInputChange}
340-
className={styles.form_select}
340+
className={styles.form_select}
341341
required
342342
>
343343
<option value="Question">Question</option>

src/sw.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import {registerRoute} from 'workbox-routing';
2-
import {StaleWhileRevalidate} from 'workbox-strategies';
1+
import { registerRoute } from "workbox-routing";
2+
import { StaleWhileRevalidate } from "workbox-strategies";
33

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

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

0 commit comments

Comments
 (0)