1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-16 05:10:49 -05:00

consistent arrow functions

This commit is contained in:
2025-03-12 18:10:11 -04:00
parent 6a57fde2f1
commit e61ca889a7
39 changed files with 121 additions and 126 deletions

View File

@@ -12,7 +12,7 @@ const Gist = async ({ id, file }: GistProps) => {
const scriptResponse = await fetch(scriptUrl);
if (!scriptResponse.ok) {
console.warn(`[gist] fetching js for https://gist.github.com/${id} failed:`, scriptResponse.statusText);
console.warn(`[gist] failed to fetch js:`, scriptResponse.statusText);
return (
<p style={{ textAlign: "center" }}>
@@ -33,10 +33,9 @@ const Gist = async ({ id, file }: GistProps) => {
scrolling="no"
id={iframeId}
srcDoc={iframeHtml}
sandbox="allow-same-origin allow-scripts allow-popups allow-top-navigation-by-user-activation"
style={{ border: "0", overflow: "hidden" }}
suppressHydrationWarning
></iframe>
/>
);
};