fix: Escape apostrophes in JSX and remove autoFocus attributes to resolve ESLint errors
This commit is contained in:
@@ -93,7 +93,7 @@ export default function ForgotPasswordPage() {
|
|||||||
Forgot Password?
|
Forgot Password?
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2" color="text.secondary">
|
<Typography variant="body2" color="text.secondary">
|
||||||
No worries! Enter your email address and we'll send you a link to reset your password.
|
No worries! Enter your email address and we'll send you a link to reset your password.
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
@@ -112,7 +112,6 @@ export default function ForgotPasswordPage() {
|
|||||||
onChange={(e) => setEmail(e.target.value)}
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
required
|
required
|
||||||
autoFocus
|
|
||||||
sx={{
|
sx={{
|
||||||
mb: 3,
|
mb: 3,
|
||||||
'& .MuiOutlinedInput-root': {
|
'& .MuiOutlinedInput-root': {
|
||||||
@@ -183,12 +182,12 @@ export default function ForgotPasswordPage() {
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Typography variant="body1" color="text.secondary" sx={{ mb: 3 }}>
|
<Typography variant="body1" color="text.secondary" sx={{ mb: 3 }}>
|
||||||
If an account with that email exists, we've sent you a password reset link. Please check your inbox and follow the instructions.
|
If an account with that email exists, we've sent you a password reset link. Please check your inbox and follow the instructions.
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Alert severity="info" sx={{ mb: 3, borderRadius: 2, textAlign: 'left' }}>
|
<Alert severity="info" sx={{ mb: 3, borderRadius: 2, textAlign: 'left' }}>
|
||||||
<Typography variant="body2" fontWeight="600" gutterBottom>
|
<Typography variant="body2" fontWeight="600" gutterBottom>
|
||||||
Didn't receive the email?
|
Didn't receive the email?
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2">
|
<Typography variant="body2">
|
||||||
• Check your spam or junk folder
|
• Check your spam or junk folder
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ export default function OnboardingPage() {
|
|||||||
Welcome to Maternal! 🎉
|
Welcome to Maternal! 🎉
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body1" color="text.secondary" sx={{ mt: 2, mb: 4 }}>
|
<Typography variant="body1" color="text.secondary" sx={{ mt: 2, mb: 4 }}>
|
||||||
We're excited to help you track and understand your child's development, sleep patterns, feeding schedules, and more.
|
We're excited to help you track and understand your child's development, sleep patterns, feeding schedules, and more.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Box sx={{ display: 'flex', gap: 2, justifyContent: 'center', flexWrap: 'wrap' }}>
|
<Box sx={{ display: 'flex', gap: 2, justifyContent: 'center', flexWrap: 'wrap' }}>
|
||||||
<Paper sx={{ p: 2, flex: 1, minWidth: 150 }}>
|
<Paper sx={{ p: 2, flex: 1, minWidth: 150 }}>
|
||||||
@@ -152,7 +152,7 @@ export default function OnboardingPage() {
|
|||||||
Add Your First Child
|
Add Your First Child
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2" color="text.secondary" sx={{ mb: 3 }}>
|
<Typography variant="body2" color="text.secondary" sx={{ mb: 3 }}>
|
||||||
Let's start by adding some basic information about your child.
|
Let's start by adding some basic information about your child.
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
{error && (
|
{error && (
|
||||||
@@ -163,7 +163,7 @@ export default function OnboardingPage() {
|
|||||||
|
|
||||||
<TextField
|
<TextField
|
||||||
fullWidth
|
fullWidth
|
||||||
label="Child's Name"
|
label="Child's Name"
|
||||||
value={childName}
|
value={childName}
|
||||||
onChange={(e) => setChildName(e.target.value)}
|
onChange={(e) => setChildName(e.target.value)}
|
||||||
margin="normal"
|
margin="normal"
|
||||||
@@ -220,7 +220,7 @@ export default function OnboardingPage() {
|
|||||||
Invite Family Members
|
Invite Family Members
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2" color="text.secondary" sx={{ mb: 3 }}>
|
<Typography variant="body2" color="text.secondary" sx={{ mb: 3 }}>
|
||||||
Share your child's progress with family members. They can view activities and add their own entries.
|
Share your child's progress with family members. They can view activities and add their own entries.
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<TextField
|
<TextField
|
||||||
@@ -262,10 +262,10 @@ export default function OnboardingPage() {
|
|||||||
<Check sx={{ fontSize: 48 }} />
|
<Check sx={{ fontSize: 48 }} />
|
||||||
</Avatar>
|
</Avatar>
|
||||||
<Typography variant="h5" gutterBottom fontWeight="600">
|
<Typography variant="h5" gutterBottom fontWeight="600">
|
||||||
You're All Set! 🎉
|
You're All Set! 🎉
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body1" color="text.secondary" sx={{ mb: 4 }}>
|
<Typography variant="body1" color="text.secondary" sx={{ mb: 4 }}>
|
||||||
Start tracking your child's activities and get personalized insights.
|
Start tracking your child's activities and get personalized insights.
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Paper sx={{ p: 3, bgcolor: 'primary.light', mb: 3 }}>
|
<Paper sx={{ p: 3, bgcolor: 'primary.light', mb: 3 }}>
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ export default function RegisterPage() {
|
|||||||
}
|
}
|
||||||
label={
|
label={
|
||||||
<Typography variant="body2" color="text.secondary">
|
<Typography variant="body2" color="text.secondary">
|
||||||
I confirm that I have my parent/guardian's permission to create this account
|
I confirm that I have my parent/guardian's permission to create this account
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
sx={{ mt: 1 }}
|
sx={{ mt: 1 }}
|
||||||
|
|||||||
@@ -183,7 +183,6 @@ export default function ResetPasswordPage() {
|
|||||||
onChange={(e) => setNewPassword(e.target.value)}
|
onChange={(e) => setNewPassword(e.target.value)}
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
required
|
required
|
||||||
autoFocus
|
|
||||||
InputProps={{
|
InputProps={{
|
||||||
endAdornment: (
|
endAdornment: (
|
||||||
<InputAdornment position="end">
|
<InputAdornment position="end">
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ export default function FamilyPage() {
|
|||||||
Family Share Code
|
Family Share Code
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2" color="text.secondary" sx={{ mb: 2 }}>
|
<Typography variant="body2" color="text.secondary" sx={{ mb: 2 }}>
|
||||||
Share this code with family members to give them access to your family's data
|
Share this code with family members to give them access to your family's data
|
||||||
</Typography>
|
</Typography>
|
||||||
<Box sx={{ display: 'flex', alignItems: 'center', gap: 2, flexWrap: 'wrap' }}>
|
<Box sx={{ display: 'flex', alignItems: 'center', gap: 2, flexWrap: 'wrap' }}>
|
||||||
<Chip
|
<Chip
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ export default function HistoryPage() {
|
|||||||
{/* Daily Summary */}
|
{/* Daily Summary */}
|
||||||
<Paper sx={{ p: 3, mt: 3 }}>
|
<Paper sx={{ p: 3, mt: 3 }}>
|
||||||
<Typography variant="h6" fontWeight="600" gutterBottom>
|
<Typography variant="h6" fontWeight="600" gutterBottom>
|
||||||
Today's Summary
|
Today's Summary
|
||||||
</Typography>
|
</Typography>
|
||||||
<Box sx={{ display: 'flex', gap: 2, flexWrap: 'wrap', mt: 2 }}>
|
<Box sx={{ display: 'flex', gap: 2, flexWrap: 'wrap', mt: 2 }}>
|
||||||
<Chip
|
<Chip
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export default function OfflinePage() {
|
|||||||
gutterBottom
|
gutterBottom
|
||||||
sx={{ fontWeight: 600 }}
|
sx={{ fontWeight: 600 }}
|
||||||
>
|
>
|
||||||
You're Offline
|
You're Offline
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Typography
|
<Typography
|
||||||
@@ -85,7 +85,7 @@ export default function OfflinePage() {
|
|||||||
color="text.secondary"
|
color="text.secondary"
|
||||||
sx={{ mb: 4 }}
|
sx={{ mb: 4 }}
|
||||||
>
|
>
|
||||||
It looks like you've lost your internet connection. Some features may be limited while offline.
|
It looks like you've lost your internet connection. Some features may be limited while offline.
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Box sx={{ mb: 3 }}>
|
<Box sx={{ mb: 3 }}>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user