From e3feb2081b778e6a7c55bd8ce53f57d390947bf9 Mon Sep 17 00:00:00 2001 From: tony Date: Tue, 18 Apr 2023 09:12:09 -0700 Subject: [PATCH] Passing props through two components to continue making all component strings editable on the pages. --- Components/Layout/section.jsx | 4 ++-- pages/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Components/Layout/section.jsx b/Components/Layout/section.jsx index 92d8d73..90c4438 100644 --- a/Components/Layout/section.jsx +++ b/Components/Layout/section.jsx @@ -1,6 +1,6 @@ import React, { useEffect, useRef, useState } from "react"; import VideoButton from "/home/clyde/Code/shiloh/Components/Buttons/video-button.jsx"; -const Section = ({ videoUrl, text, buttonOneText, buttonTwoText }) => { +const Section = ({ videoUrl, text, videoID, buttonOneText, buttonTwoText }) => { const videoRef = useRef(null); const [isPlaying, setIsPlaying] = useState(false); @@ -45,7 +45,7 @@ const Section = ({ videoUrl, text, buttonOneText, buttonTwoText }) => {

{text}

- + diff --git a/pages/index.js b/pages/index.js index 6a63b2b..dca18f7 100644 --- a/pages/index.js +++ b/pages/index.js @@ -8,10 +8,10 @@ export default function Home() { <>