Skip to content

Commit

Permalink
Merge pull request #27 from Ryczko/chore/code-clean-up
Browse files Browse the repository at this point in the history
Chore/code clean up
  • Loading branch information
Ryczko authored May 2, 2022
2 parents f57db27 + 794711b commit 660af48
Show file tree
Hide file tree
Showing 57 changed files with 329 additions and 183 deletions.
237 changes: 183 additions & 54 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"react-dom": "^17.0.2",
"react-firebase-hooks": "^5.0.3",
"react-hot-toast": "^2.2.0",
"react-icons": "^4.3.1",
"react-json-to-csv": "^1.0.4",
"react-router-dom": "^6.2.2",
"react-scripts": "5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import App from './App';

test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
const linkElement = screen.getByText(/How are you/i);
expect(linkElement).toBeInTheDocument();
});
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PageWrapper from './Pages/PageWrapper';
import PageWrapper from './Layouts/PageWrapper';
import { Toaster } from 'react-hot-toast';

function App() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BarChart, { BarChartData } from '../BarChart/BarChart';
import DataCard from './DataCard/DataCard';
import BarChart, { BarChartData } from '../BarChart';
import DataCard from '../DataCard';

interface AnswerHeaderProps {
totalVotes: number;
Expand Down
2 changes: 2 additions & 0 deletions src/Components/AnswerHeader/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default } from './AnswerHeader';
export * from './AnswerHeader';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Emoji from '../Emoji/Emoji';
import Emoji from '../Emoji';

interface AnswerTableRowProps {
time: string;
Expand Down
2 changes: 2 additions & 0 deletions src/Components/AnswerTableRow/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default } from './AnswerTableRow';
export * from './AnswerTableRow';
2 changes: 2 additions & 0 deletions src/Components/BarChart/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default } from './BarChart';
export * from './BarChart';
2 changes: 2 additions & 0 deletions src/Components/BurgerMenu/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default } from './BurgerMenu';
export * from './BurgerMenu';
File renamed without changes.
2 changes: 2 additions & 0 deletions src/Components/Button/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default } from './Button';
export * from './Button';
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Props = {

export default function DataCard({ title, value }: Props) {
return (
<div className="px-6 m-1 py-2 w-[200px] bg-white rounded-lg border border-gray-200 shadow-md ">
<div className="px-6 m-1 py-2 w-[200px] bg-white rounded-lg border border-gray-200 shadow-md">
<h3 className="font-semibold mb-1">{title}</h3>
{value}
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/Components/DataCard/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default } from './DataCard';
export * from './DataCard';
Loading

0 comments on commit 660af48

Please sign in to comment.