Skip to content

Commit

Permalink
v0.4.47 Added a server and connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubaton committed Dec 28, 2023
1 parent bed8dec commit ace1c6d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/components/BusinessCard/page.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
"use client";

import DownloadButton from "@/constants/DownloadButton/page";
import React, { useState, useEffect, useRef } from "react";
import styleOptions from "./StyleOptions/stylesOptions.js";
import Image from "next/image";
import { BsChevronUp, BsChevronDown } from "react-icons/bs";
import {
BsChevronUp,
BsChevronDown,
BsBuildings,
BsPerson,
BsEnvelopeAt,
Expand Down Expand Up @@ -32,7 +35,7 @@ const BusinessCard = ({
twitter,
facebook,
instagram,
logo,
logoId,
}) => {
const cardRef = useRef();
const [selectedStyle, setSelectedStyle] = useState(styleOptions[0]);
Expand Down Expand Up @@ -148,9 +151,9 @@ const BusinessCard = ({
</div>

<div className="p-1">
{logo && (
{logoId && (
<Image
src={URL.createObjectURL(logo)}
src={`/api/images/${logoId}`} // Replace with your actual route
alt="Logo"
className="mx-auto"
width={96}
Expand All @@ -166,9 +169,9 @@ const BusinessCard = ({
className={`flex flex-col items-center rounded-xl justify-center w-[320px] h-[180px] ${selectedStyle.className}`}
>
<div className="flex flex-row items-center">
{logo && (
{logoId && (
<Image
src={URL.createObjectURL(logo)}
src={`/api/images/${logoId}`} // Replace with your actual route
alt="Logo"
className="mx-auto"
width={98}
Expand Down

0 comments on commit ace1c6d

Please sign in to comment.