Skip to content

Commit 566043b

Browse files
committed
card loader inside surface
1 parent 563b625 commit 566043b

File tree

2 files changed

+46
-6
lines changed

2 files changed

+46
-6
lines changed

src/ui/surfaces/SiteGeneralConfiguration.tsx

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ export const SiteGeneralConfiguration = () => {
2323
});
2424

2525
if (siteSettingsQuery.isLoading) {
26-
return <CardLoader />;
26+
return (
27+
<SiteGeneralConfigurationSurface>
28+
<CardLoader />
29+
</SiteGeneralConfigurationSurface>
30+
);
2731
}
2832

2933
return (
@@ -56,8 +60,24 @@ export const SiteGeneralConfiguration = () => {
5660
<hr />
5761
The code for this surface can be seen here:
5862
<ul>
59-
<li>&nbsp;&nbsp;<Link href="https://github.com/netlify/extension-showcase/blob/main/src/ui/surfaces/SiteGeneralConfiguration.tsx" target="_blank">React UI code</Link></li>
60-
<li>&nbsp;&nbsp;<Link href="https://github.com/netlify/extension-showcase/blob/main/src/server/router.ts" target="_blank">Server code</Link></li>
63+
<li>
64+
&nbsp;&nbsp;
65+
<Link
66+
href="https://github.com/netlify/extension-showcase/blob/main/src/ui/surfaces/SiteGeneralConfiguration.tsx"
67+
target="_blank"
68+
>
69+
React UI code
70+
</Link>
71+
</li>
72+
<li>
73+
&nbsp;&nbsp;
74+
<Link
75+
href="https://github.com/netlify/extension-showcase/blob/main/src/server/router.ts"
76+
target="_blank"
77+
>
78+
Server code
79+
</Link>
80+
</li>
6181
</ul>
6282
</Card>
6383
</SiteGeneralConfigurationSurface>

src/ui/surfaces/TeamConfiguration.tsx

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ export const TeamConfiguration = () => {
2222
});
2323

2424
if (teamSettingsQuery.isLoading) {
25-
return <CardLoader />;
25+
return (
26+
<TeamConfigurationSurface>
27+
<CardLoader />
28+
</TeamConfigurationSurface>
29+
);
2630
}
2731

2832
return (
@@ -48,8 +52,24 @@ export const TeamConfiguration = () => {
4852
<hr />
4953
The code for this surface can be seen here:
5054
<ul>
51-
<li>&nbsp;&nbsp;<Link href="https://github.com/netlify/extension-showcase/blob/main/src/ui/surfaces/TeamConfiguration.tsx" target="_blank">React UI code</Link></li>
52-
<li>&nbsp;&nbsp;<Link href="https://github.com/netlify/extension-showcase/blob/main/src/server/router.ts" target="_blank">Server code</Link></li>
55+
<li>
56+
&nbsp;&nbsp;
57+
<Link
58+
href="https://github.com/netlify/extension-showcase/blob/main/src/ui/surfaces/TeamConfiguration.tsx"
59+
target="_blank"
60+
>
61+
React UI code
62+
</Link>
63+
</li>
64+
<li>
65+
&nbsp;&nbsp;
66+
<Link
67+
href="https://github.com/netlify/extension-showcase/blob/main/src/server/router.ts"
68+
target="_blank"
69+
>
70+
Server code
71+
</Link>
72+
</li>
5373
</ul>
5474
</Card>
5575
</TeamConfigurationSurface>

0 commit comments

Comments
 (0)