From 0f259824fcbeb39bca3547544ff491dd50b1d080 Mon Sep 17 00:00:00 2001 From: jude Date: Mon, 30 Oct 2023 20:31:07 +0000 Subject: [PATCH] Prop drilling --- src/components/EditReminder/Content.tsx | 5 ++- .../EditReminder/Embed/Description.tsx | 5 ++- src/components/EditReminder/Embed/Title.tsx | 5 ++- src/components/EditReminder/Embed/index.tsx | 42 +++++++++++++++++-- src/components/EditReminder/Username.tsx | 29 +++++++------ src/components/EditReminder/index.tsx | 38 ++++++++++++++--- 6 files changed, 100 insertions(+), 24 deletions(-) diff --git a/src/components/EditReminder/Content.tsx b/src/components/EditReminder/Content.tsx index 5faa160..a648209 100644 --- a/src/components/EditReminder/Content.tsx +++ b/src/components/EditReminder/Content.tsx @@ -1,4 +1,4 @@ -export const Content = ({ value }) => ( +export const Content = ({ value, onChange }) => ( <> ); diff --git a/src/components/EditReminder/Embed/Description.tsx b/src/components/EditReminder/Embed/Description.tsx index f1d1ec3..30c2c5d 100644 --- a/src/components/EditReminder/Embed/Description.tsx +++ b/src/components/EditReminder/Embed/Description.tsx @@ -1,4 +1,4 @@ -export const Description = ({ description }) => ( +export const Description = ({ description, onChange }) => ( <>