group posts

This commit is contained in:
Виталий Лавшонок
2025-11-15 22:23:26 +03:00
parent dfc2985209
commit 56b6f9b339
28 changed files with 624 additions and 47 deletions

View File

@@ -39,7 +39,7 @@ export const SearchInput: React.FC<searchInputProps> = ({
>
<input
className={cn(
'placeholder:text-liquid-light w-full bg-transparent outline-none text-liquid-white',
'placeholder:text-liquid-light h-[28px] w-[200px] bg-transparent outline-none text-liquid-white ',
)}
value={value}
name={name}
@@ -53,7 +53,10 @@ export const SearchInput: React.FC<searchInputProps> = ({
if (onKeyDown) onKeyDown(e);
}}
/>
<img src={iconSearch} className=" absolute top-[8px] left-[16px]" />
<img
src={iconSearch}
className=" absolute top-[8px] left-[16px] w-[24px] h-[24px]"
/>
</label>
);
};

View File

@@ -6,8 +6,6 @@ export default function ProtectedRoute() {
const isAuthenticated = useAppSelector((state) => !!state.auth.jwt);
const location = useLocation();
console.log('location', location);
if (!isAuthenticated) {
return <Navigate to="/home/login" replace state={{ from: location }} />;
}