Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions components/explore/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useAccount, useDisconnect } from "@starknet-react/core";
import { useAuth } from "@/components/auth/auth-provider";
import ConnectModal from "../connectWallet";
import ProfileModal from "./ProfileModal";
import Avatar from "@/public/Images/user.png";
import { Avatar } from "@/public/Images";
import ProfileDropdown from "../ui/profileDropdown";

interface NavbarProps {
Expand Down Expand Up @@ -229,7 +229,9 @@ export default function Navbar({}: NavbarProps) {
};

const handleProfileDisplayModal = useCallback(async () => {
if (!address) {return;}
if (!address) {
return;
}

setIsLoading(true);
try {
Expand Down Expand Up @@ -330,7 +332,9 @@ export default function Navbar({}: NavbarProps) {
setIsSearchDropdownOpen(true);
}}
onFocus={() => {
if (searchResults.length > 0) {setIsSearchDropdownOpen(true);}
if (searchResults.length > 0) {
setIsSearchDropdownOpen(true);
}
}}
className={`w-full bg-input rounded-xl py-2 pl-10 pr-4 text-sm outline-none focus:ring-1 focus:ring-highlight focus:outline-none`}
/>
Expand Down
2 changes: 1 addition & 1 deletion components/landing-page/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { motion } from "framer-motion";
import Link from "next/link";
import Image from "next/image";
import { Mail } from "lucide-react";
import Logo from "@/public/Images/streamFiLogo.svg";
import { Logo } from "@/public/Images";
import Section from "@/components/layout/Section";

export default function Footer() {
Expand Down
10 changes: 6 additions & 4 deletions components/settings/profile/profile-page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
"use client";
import { useEffect, useCallback, useState } from "react";
import type React from "react";
import { useAuth } from "@/components/auth/auth-provider";
import { motion, AnimatePresence } from "framer-motion";
import profileImage from "@/public/Images/profile.png";
import Avatar from "@/public/icons/avatar.svg";
// Remove direct image imports
import { Avatar } from "@/public/icons";
import { ProfileImage } from "@/public/Images";
import VerificationPopup from "./popup";
import AvatarSelectionModal from "./avatar-modal";
import type {
Expand All @@ -30,7 +32,7 @@ export default function ProfileSettings() {
const { showToast } = useToast();

const [avatar, setAvatar] = useState<StaticImageData | string | File>(
profileImage
ProfileImage
);
const [socialLinks, setSocialLinks] = useState<SocialLink[]>([]);

Expand Down Expand Up @@ -381,7 +383,7 @@ export default function ProfileSettings() {

// Prepare avatar data if it's a File/Blob
let avatarData: string | File | undefined;
if (typeof avatar === "string" && avatar !== profileImage.src) {
if (typeof avatar === "string" && avatar !== "/Images/profile.png") {
avatarData = avatar;
} else if (avatar instanceof File) {
avatarData = avatar;
Expand Down
2 changes: 1 addition & 1 deletion components/ui/streamkeyModal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";
import React, { useEffect, useState } from "react";
import Image from "next/image";
import Copy from "@/public/Images/copy.png";
import { Copy } from "@/public/Images";
import { motion, AnimatePresence } from "framer-motion";

interface StreamKeyModalProps {
Expand Down
12 changes: 4 additions & 8 deletions data/landing-page/community.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
import { CardProps } from "@/types/landing-page";
import key from "../../public/Images/key.png";
import bulb from "../../public/Images/bulb.png";
import podcast from "../../public/Images/podcast.png";
import folder from "../../public/Images/folder.png";

export const cards: CardProps[] = [
{
icon: key,
icon: "/Images/key.png",
title: "Exclusive Beta Access",
description: "Be first to try out new features",
},
{
icon: bulb,
icon: "/Images/bulb.png",
title: "Knowledge Based & Resources",
description: "Learn everything about web3 streaming and monitization",
},
{
icon: podcast,
icon: "/Images/podcast.png",
title: "Networking Opportunities",
description: "Connect with top creators, investors and web3 pioneers",
},
{
icon: folder,
icon: "/Images/folder.png",
title: "Earning Potential",
description:
"Unlock multiple revenue streams through decentralised streaming",
Expand Down
20 changes: 20 additions & 0 deletions public/Images/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import CoinbaseLogo from "./coinbase-logo.png";
import StripeLogo from "./stripe-logo.png";
import YoutubeLogo from "./youtube-logo.png";
import Discord from "./discord copy.svg";
import Copy from "@/public/Images/copy.png";
import Avatar from "@/public/Images/user.png";
import AboutImage2 from './About-image (2).svg'
import ProfileImage from './profile.png'
import Logo from './streamFiLogo.svg'
export {
CoinbaseLogo,
StripeLogo,
YoutubeLogo,
Discord,
Copy,
Avatar,
AboutImage2,
ProfileImage,
Logo
};
17 changes: 0 additions & 17 deletions public/Images/index.tsx

This file was deleted.

2 changes: 2 additions & 0 deletions public/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import VerifySuccess from "./verify-success.svg";
import Pfp1 from "./Recommend pfps.svg";
import Pfp2 from "./Recommend pfps (1).svg";
import Pfp3 from "./Recommend pfps (2).svg";
import Avatar from './avatar.svg'
export {
CommunityIcon,
MoneyLink,
Expand All @@ -17,4 +18,5 @@ export {
Pfp3,
StreamfiLogoShort,
StreamfiLogoLight,
Avatar
};
29 changes: 29 additions & 0 deletions types/image.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
declare module "*.png" {
const content: string;
export default content;
}

declare module "*.jpg" {
const content: string;
export default content;
}

declare module "*.jpeg" {
const content: string;
export default content;
}

declare module "*.svg" {
const content: string;
export default content;
}

declare module "*.gif" {
const content: string;
export default content;
}

declare module "*.webp" {
const content: string;
export default content;
}
29 changes: 29 additions & 0 deletions types/images.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
declare module "*.png" {
const content: string;
export default content;
}

declare module "*.jpg" {
const content: string;
export default content;
}

declare module "*.jpeg" {
const content: string;
export default content;
}

declare module "*.svg" {
const content: string;
export default content;
}

declare module "*.gif" {
const content: string;
export default content;
}

declare module "*.webp" {
const content: string;
export default content;
}
Loading