Skip to content

Commit

Permalink
edit background header component to use firebase images
Browse files Browse the repository at this point in the history
  • Loading branch information
jackavh committed May 29, 2024
1 parent 5a7ccf2 commit ff2febf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions frontend/src/components/BackgroundHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ const BackgroundHeader = ({
interval = 5000,
button = null,
}: BackgroundHeaderProps) => {
backgroundImageURIs = [
"back1.png",
"back2.jpeg",
"back3.png",
// Add more URIs as needed
];

const [activeIndex, setActiveIndex] = useState(0);

const nextSlide = () => {
Expand All @@ -43,6 +36,7 @@ const BackgroundHeader = ({
};
}, [backgroundImageURIs.length, interval]);

console.log(backgroundImageURIs[activeIndex]);
return (
<div className="w-full h-[650px] relative">
{backgroundImageURIs.map((uri, index) => (
Expand Down

0 comments on commit ff2febf

Please sign in to comment.