Skip to content

Commit 9ec382f

Browse files
Merge pull request #58 from Priya-creates/feat/loading-skeleton
Add reusable loading skeletons with ARIA labels for Weather Dashboard (Fixes #13)
2 parents f6c75f7 + e4fcfae commit 9ec382f

File tree

4 files changed

+409
-930
lines changed

4 files changed

+409
-930
lines changed

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default function App() {
6565
<Route path="/trivia" element={<Trivia />} />
6666
<Route path="/jokes-quotes" element={<JokesQuotes />} />
6767
<Route path="/pets" element={<Pets />} />
68-
<Route path="/covid" element={<Covid />} />
68+
<Route path="/covid" element={<Covid />} />
6969
</Routes>
7070
</main>
7171
</div>

src/components/Skeleton.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react';
2+
3+
const Skeleton = ({width, height}) => {
4+
return (
5+
<span className="skeleton" style={{width:`${width}`, height:`${height}`}}></span>
6+
)
7+
}
8+
9+
export default Skeleton;

0 commit comments

Comments
 (0)