Skip to content

Commit

Permalink
Remove unnecessary boiler code
Browse files Browse the repository at this point in the history
  • Loading branch information
saracrz committed Nov 3, 2023
1 parent d6e4c9b commit 566e7ca
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 36 deletions.
13 changes: 2 additions & 11 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
import { UserCard } from "./sections/users/UserCard";
import { useUsers } from "./sections/users/useUsers";

export function App() {
const users = useUsers();

export const App = () => {
return (
<div className="App">
<h3>React Dashboard App</h3>

{users.map((user) => (
<UserCard key={user.name} user={user} />
))}
</div>
);
}
};
11 changes: 0 additions & 11 deletions src/sections/styles/StyledComponents.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
import styled from "styled-components";

export const UserCardWrapper = styled.div`
margin-bottom: 1rem;
padding: 0.5rem;
border: 1px solid #c9c2c2;
border-radius: 0.25rem;
&:hover {
background-color: #e5e5e5;
}
`;
6 changes: 0 additions & 6 deletions src/sections/users/UserCard.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions src/sections/users/useUsers.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/styles/StyledComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const AppRoot = createGlobalStyle`
font-family: Verdana, sans-serif;
}
/* Body */
/* Body */
html {
font-size: 62.5%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
Expand Down

0 comments on commit 566e7ca

Please sign in to comment.