Skip to content

Commit 4c72dee

Browse files
changed netlify redirect
1 parent d63729d commit 4c72dee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Frontend/netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[[redirects]]
22
from = "/*"
3-
to = "/"
3+
to = "/index.html"
44
status = 200

Frontend/src/App/Dashboard/CodespaceGrid.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useCodespaceContext } from "../../Contexts/CodespaceContext";
22
import { type ViewMode } from "./codespace.types";
33
import CreateCodespaceCard from "./CreateCodespaceCard";
44
import CodespaceCard from "./CodespaceCard";
5+
import { useTheme } from "../../Contexts/ThemeProvider";
56

67
interface Props {
78
searchQuery: string;
@@ -11,6 +12,7 @@ interface Props {
1112

1213
function CodespaceGrid({ searchQuery, viewMode, onOpenCreateModal }: Props) {
1314
const { codespaces, loading } = useCodespaceContext();
15+
const { theme } = useTheme();
1416

1517
// Filter codespaces based on search query with null check
1618
const filteredCodespaces = codespaces.filter((codespace) =>
@@ -22,7 +24,7 @@ function CodespaceGrid({ searchQuery, viewMode, onOpenCreateModal }: Props) {
2224
<div className="flex justify-center items-center py-12">
2325
<div
2426
role="status"
25-
className="animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-primary"
27+
className={`${theme.text} animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-primary`}
2628
></div>
2729
</div>
2830
);

0 commit comments

Comments
 (0)