Skip to content

Remove duplicate whatsapp button componets#7

Open
dha-aa wants to merge 1 commit intoa1baseai:mainfrom
dha-aa:fix/remove-duplicate-whatsapp-button-components
Open

Remove duplicate whatsapp button componets#7
dha-aa wants to merge 1 commit intoa1baseai:mainfrom
dha-aa:fix/remove-duplicate-whatsapp-button-components

Conversation

@dha-aa
Copy link
Copy Markdown

@dha-aa dha-aa commented Apr 6, 2025

Summary

  • Merged the logic from whatsapp-button-simple.tsx into whatsapp-button.tsx.
  • Deleted the now-unnecessary whatsapp-button-simple.tsx file.
  • Updated the import in app/page.tsx to use the unified whatsapp-button.tsx:
    // Before
    import { WhatsAppButton } from "@/components/whatsapp-button-simple";
    
    // After
    import { WhatsAppButton } from "@/components/whatsapp-button";

Why

Unifying the WhatsApp button into a single component makes the code easier to maintain and avoids confusion between similar files.
Cleaning up the extra file also helps keep the project organized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant