Skip to content

Commit

Permalink
fix: Feedback typo (#36)
Browse files Browse the repository at this point in the history
* rm network name on feedback

* rm network name from cancel content
  • Loading branch information
gbarkhatov authored Aug 6, 2024
1 parent d053114 commit 81518e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/components/Modals/FeedbackModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface FeedbackModalProps {
}

interface ContentProps {
networkName: string;
networkName?: string;
}

const SuccessContent: React.FC<ContentProps> = ({ networkName }) => {
Expand Down Expand Up @@ -74,7 +74,7 @@ const SuccessContent: React.FC<ContentProps> = ({ networkName }) => {
);
};

const CancelContent: React.FC<ContentProps> = ({ networkName }) => {
const CancelContent: React.FC<ContentProps> = () => {
return (
<div className="text-text-black dark:text-white">
<div className="mt-6 flex flex-col gap-4">
Expand Down Expand Up @@ -119,8 +119,8 @@ const CancelContent: React.FC<ContentProps> = ({ networkName }) => {
</ul>
<p>
Your feedback is crucial for us to improve and provide a seamless
experience. Thank you for being a part of our Bitcoin Staking Protocol{" "}
{networkName}!
experience. Thank you for being a part of our Bitcoin Staking
Protocol!
</p>
</div>
</div>
Expand Down Expand Up @@ -148,7 +148,7 @@ export const FeedbackModal: React.FC<FeedbackModalProps> = ({
</button>
</div>
{type === "success" && <SuccessContent networkName={networkName} />}
{type === "cancel" && <CancelContent networkName={networkName} />}
{type === "cancel" && <CancelContent />}
</GeneralModal>
);
};

0 comments on commit 81518e1

Please sign in to comment.