Skip to content

Commit 308e572

Browse files
committed
made prettier changes
1 parent a30be9d commit 308e572

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

src/plays/api-request-builder/ApiRequestBuilder.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function ApiRequestBuilder(props) {
102102

103103
let responseData;
104104
const contentType = response.headers.get('content-type');
105-
105+
106106
if (contentType && contentType.includes('application/json')) {
107107
responseData = await response.json();
108108
} else {

src/plays/api-request-builder/components/HistoryPanel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function HistoryPanel({ history, onLoadRequest, onClearHistory, onClose }) {
1111
if (diffMins < 60) return `${diffMins}m ago`;
1212
if (diffHours < 24) return `${diffHours}h ago`;
1313
if (diffDays < 7) return `${diffDays}d ago`;
14-
14+
1515
return date.toLocaleDateString();
1616
};
1717

src/plays/api-request-builder/styles.css

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.api-builder-container {
2-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
2+
font-family:
3+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
34
padding: 1.5rem;
45
max-width: 1400px;
56
margin: 0 auto;
@@ -136,8 +137,13 @@
136137
}
137138

138139
@keyframes pulse {
139-
0%, 100% { opacity: 1; }
140-
50% { opacity: 0.7; }
140+
0%,
141+
100% {
142+
opacity: 1;
143+
}
144+
50% {
145+
opacity: 0.7;
146+
}
141147
}
142148

143149
.request-tabs {
@@ -236,7 +242,7 @@
236242
border-radius: 6px;
237243
}
238244

239-
.header-row input[type="checkbox"] {
245+
.header-row input[type='checkbox'] {
240246
width: 18px;
241247
height: 18px;
242248
cursor: pointer;
@@ -298,7 +304,7 @@
298304
color: #4a5568;
299305
}
300306

301-
.body-type-selector input[type="radio"] {
307+
.body-type-selector input[type='radio'] {
302308
cursor: pointer;
303309
}
304310

@@ -413,7 +419,9 @@
413419
}
414420

415421
@keyframes spin {
416-
to { transform: rotate(360deg); }
422+
to {
423+
transform: rotate(360deg);
424+
}
417425
}
418426

419427
.response-loading p {
@@ -803,7 +811,7 @@
803811
gap: 0.5rem;
804812
}
805813

806-
.header-row input[type="text"]:last-of-type {
814+
.header-row input[type='text']:last-of-type {
807815
grid-column: 1 / -1;
808816
}
809817
}

0 commit comments

Comments
 (0)