Skip to content

Commit

Permalink
Merge pull request #2427 from airqo-platform/website-update-codebase
Browse files Browse the repository at this point in the history
Website: Added Error handling and  UI adjustments
  • Loading branch information
Baalmart authored Jan 29, 2025
2 parents ae7c3bc + cb58d96 commit c0b3e49
Show file tree
Hide file tree
Showing 22 changed files with 737 additions and 899 deletions.
2 changes: 1 addition & 1 deletion website2/src/app/clean-air-forum/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type CleanAirLayoutProps = {

const CleanAirLayout: React.FC<CleanAirLayoutProps> = ({ children }) => {
// Using the `useForumEvents` hook
const { forumEvents, isLoading } = useForumEvents();
const { data: forumEvents, isLoading } = useForumEvents();

// Extract the first event (if available)
const eventData = forumEvents?.[0] || null;
Expand Down
2 changes: 1 addition & 1 deletion website2/src/app/partners/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const PartnerDetailsPage: React.FC = () => {
const router = useRouter();
const params = useParams();
const { id } = params as { id: string };
const { partnerDetails: partner, isLoading, isError } = usePartnerDetails(id);
const { data: partner, isLoading, isError } = usePartnerDetails(id);

// Skeleton loader component
const SkeletonLoader = () => (
Expand Down
6 changes: 5 additions & 1 deletion website2/src/components/layouts/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ const Navbar: React.FC = () => {
className={`flex items-center justify-between ${mainConfig.containerClass}`}
>
{/* Logo Section */}
<Link href="/" passHref className="flex items-center">
<Link
href={`${mainConfig.homePageUrl}`}
passHref
className="flex items-center"
>
<Image
src="https://res.cloudinary.com/dbibjvyhm/image/upload/v1728138368/website/Logos/logo_rus4my.png"
alt="AirQo"
Expand Down
Loading

0 comments on commit c0b3e49

Please sign in to comment.