Skip to content

Commit 2864bd0

Browse files
authored
fix faqs (#205)
1 parent d4e0faa commit 2864bd0

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/app/components/FAQs.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ const SectionTitleStyled = styled(SectionTitle)`
4343
align-items: center;
4444
justify-content: center;
4545
margin: 0 auto;
46-
4746
padding: ${SpacingM} clamp(4rem, 15vw, 12rem);
4847
background-image: url("/faqs.svg");
4948
background-repeat: no-repeat;
@@ -105,6 +104,7 @@ const QuestionBox = styled.div`
105104
border-radius: 10px;
106105
box-shadow: 2px 2px 8px black;
107106
background-color: #5b5340;
107+
cursor: pointer;
108108
`;
109109

110110
const SupportImage = styled(Image)<{
@@ -196,7 +196,6 @@ const TorchWrapper = styled.div`
196196
position: relative;
197197
width: 24px;
198198
height: 40px;
199-
cursor: pointer;
200199
`;
201200

202201
const FireGif = styled(Image)`
@@ -215,7 +214,6 @@ const TorchIcon = styled(Image)`
215214
`;
216215

217216
const QuestionTitle = styled(BodyBold)`
218-
cursor: pointer;
219217
color: #ffffff;
220218
`;
221219

@@ -338,7 +336,7 @@ export default function FAQs() {
338336
const renderFaq = (faq: Faq) => (
339337
<Question key={faq.id}>
340338
<FaqWrapper>
341-
<QuestionBox>
339+
<QuestionBox onClick={() => toggleFaq(faq.id)}>
342340
<SupportImage
343341
src="/suport.svg"
344342
alt="support left"
@@ -356,7 +354,7 @@ export default function FAQs() {
356354
isVisible={activeFaqId === faq.id}
357355
/>
358356
<QuestionTitleWrap>
359-
<TorchWrapper onClick={() => toggleFaq(faq.id)}>
357+
<TorchWrapper>
360358
{activeFaqId === faq.id && (
361359
<FireGif
362360
src="/fire_move.gif"
@@ -368,9 +366,7 @@ export default function FAQs() {
368366
)}
369367
<TorchIcon src="/torch.svg" alt="torch" width={24} height={24} />
370368
</TorchWrapper>
371-
<QuestionTitle onClick={() => toggleFaq(faq.id)}>
372-
{faq.question}
373-
</QuestionTitle>
369+
<QuestionTitle>{faq.question}</QuestionTitle>
374370
</QuestionTitleWrap>
375371
</QuestionBox>
376372

0 commit comments

Comments
 (0)