Skip to content

Commit 21b3be4

Browse files
committed
fixed review
1 parent 8f621ec commit 21b3be4

2 files changed

Lines changed: 9 additions & 11 deletions

File tree

src/components/Navbar.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ const Navbar: React.FC = () => {
126126
}}
127127
/>
128128
</div>
129+
<Link
130+
to="/"
131+
className="block px-3 py-2 rounded-md text-base font-medium text-foreground hover:bg-muted hover:text-primary transition-colors"
132+
onClick={() => setIsOpen(false)}
133+
>
134+
{"Home"}
135+
</Link>
129136
<Link
130137
to="/services"
131138
className="block px-3 py-2 rounded-md text-base font-medium text-foreground hover:bg-muted hover:text-primary transition-colors"
@@ -156,16 +163,7 @@ const Navbar: React.FC = () => {
156163
<div className="pt-2 space-y-2">
157164
<LanguageSelector />
158165
{user ? (
159-
<Button
160-
variant="outline"
161-
className="w-full"
162-
onClick={() => {
163-
signOut();
164-
setIsOpen(false);
165-
}}
166-
>
167-
{t('common.signOut')}
168-
</Button>
166+
<UserProfileMenu />
169167
) : (
170168
<>
171169
<Button

src/components/ReviewForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface ReviewFormProps {
88
const ReviewForm: React.FC<ReviewFormProps> = ({ onClose }) => {
99
const [reviewName, setReviewName] = useState('');
1010
const [reviewText, setReviewText] = useState('');
11-
const [reviewStars, setReviewStars] = useState(5);
11+
const [reviewStars, setReviewStars] = useState(0);
1212

1313
const handleSubmitReview = async () => {
1414
if (!reviewName || !reviewText) {

0 commit comments

Comments
 (0)