Skip to content

Commit

Permalink
Fix recharts warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorBeck committed Sep 1, 2024
1 parent 4742b00 commit 0320a2f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/layout/MainLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export default function Dashboard({ children }) {
alt="PoultryPro Logo"
sx={{
marginRight: open ? '16px' : 'auto',
marginLeft: open ? '' : 'auto'
marginLeft: open ? '10px' : 'auto'
}}
/>
{open && (
Expand Down
15 changes: 13 additions & 2 deletions src/pages/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,15 @@ export default function Dashboard() {
>
<LineChart data={eggProductionData}>
<XAxis dataKey="month" />
<YAxis />
<YAxis
width={40}
tickCount={5}
tickFormatter={false}
label={false}
tickLine={false}
axisLine={false}
tickMargin={10}
/>
<Tooltip />
<Line
type="monotone"
Expand Down Expand Up @@ -149,7 +157,10 @@ export default function Dashboard() {
>
<BarChart data={weightDistributionData}>
<XAxis dataKey="weight" />
<YAxis />
<YAxis
width={40}
tickCount={5}
/>
<Tooltip />
<Bar
dataKey="count"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SignIn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function SignIn() {
// Navigate to dashboard after 1.5 seconds
setTimeout(() => {
navigate('/dashboard');
}, 1500);
}, 1000);
} catch (error) {
dispatch(loginFailure(error.message || 'Failed to sign in'));
setSnackbarProps({
Expand Down
4 changes: 4 additions & 0 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
-moz-osx-font-smoothing: grayscale;
}

body {
margin: 0;
}

a {
font-weight: 500;
color: #646cff;
Expand Down

0 comments on commit 0320a2f

Please sign in to comment.