Skip to content

Commit c5b0bb8

Browse files
fix: remove email from contact us section (#458)
* fix(ui): removed email from contact us Signed-off-by: greedy-wudpeckr <mudituiet@gmail.com> * updated tests for contact-us Signed-off-by: greedy-wudpeckr <mudituiet@gmail.com> --------- Signed-off-by: greedy-wudpeckr <mudituiet@gmail.com>
1 parent ffbf6f7 commit c5b0bb8

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

frontend/src/components/LandingComponents/Contact/Contact.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
CardTitle,
99
} from '@/components/ui/card';
1010
import { AiOutlineDiscord } from 'react-icons/ai';
11-
import { GithubIcon, MailIcon } from 'lucide-react';
11+
import { GithubIcon } from 'lucide-react';
1212
import { TbBrandZulip } from 'react-icons/tb';
1313
import { url } from '@/components/utils/URLs';
1414

@@ -38,12 +38,6 @@ const contactList: ContactProps[] = [
3838
position: 'Join us at Discord for discussions',
3939
url: '',
4040
},
41-
{
42-
icon: <MailIcon size={45} />,
43-
name: 'Email',
44-
position: 'Email us for any queries',
45-
url: '',
46-
},
4741
];
4842

4943
const cardVariants = {
@@ -75,7 +69,7 @@ export const Contact = () => {
7569
<div
7670
data-testid="contact"
7771
ref={ref}
78-
className="grid md:grid-cols-2 lg:grid-cols-4 gap-8 gap-y-10"
72+
className="grid grid-cols-1 md:grid-cols-3 gap-8 gap-y-10"
7973
>
8074
{contactList.map(({ icon, name, position, url }: ContactProps) => (
8175
<motion.div

frontend/src/components/LandingComponents/Contact/__tests__/Contact.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('Contact Component', () => {
2626
test('renders all contact cards', () => {
2727
render(<Contact />);
2828

29-
const contactNames = ['Zulip', 'Github', 'Discord', 'Email'];
29+
const contactNames = ['Zulip', 'Github', 'Discord'];
3030

3131
contactNames.forEach((name) => {
3232
const contactCard = screen.getByText(name);
@@ -41,7 +41,6 @@ describe('Contact Component', () => {
4141
'Join our Zulip channel',
4242
'Check out our Github repository',
4343
'Join us at Discord for discussions',
44-
'Email us for any queries',
4544
];
4645

4746
contactPositions.forEach((position) => {

0 commit comments

Comments
 (0)