Skip to content

Commit

Permalink
Adding divider and trying to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
deborahniesz committed Feb 21, 2024
1 parent a51036b commit e32c7f1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ jobs:
cache-dependency-path: reqs/requirements-dev-test.txt
- name: Install dependencies
run: pip install -r reqs/requirements-dev-test.txt
- name: Add Env Variables
run: |
echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
- name: Build docs
env:
NODE_OPTIONS: --max_old_space_size=4096
Expand Down
15 changes: 9 additions & 6 deletions docs/docusaurus/src/components/WasThisHelpful/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ export default function WasThisHelpful(){
}
};

return <div className={styles.feedbackCard}>
<h3 className={styles.feedbackCardTitle}>Was this helpful?</h3>
<div className={styles.feedbackCardActions}>
<button className={feedbackSent ? styles.inactiveFeedbackButton : styles.feedbackButton} onClick={() => handleFeedbackReaction('test_docs.thumbs_up')}>Yes</button>
<button className={feedbackSent ? styles.inactiveFeedbackButton : styles.feedbackButton} onClick={() => handleFeedbackReaction('test_docs.thumbs_down')}>No</button>
return <>
<hr className={styles.feedbackDivider}></hr>
<div className={styles.feedbackCard}>
<h3 className={styles.feedbackCardTitle}>Was this helpful?</h3>
<div className={styles.feedbackCardActions}>
<button className={feedbackSent ? styles.inactiveFeedbackButton : styles.feedbackButton} onClick={() => handleFeedbackReaction('test_docs.thumbs_up')}>Yes</button>
<button className={feedbackSent ? styles.inactiveFeedbackButton : styles.feedbackButton} onClick={() => handleFeedbackReaction('test_docs.thumbs_down')}>No</button>
</div>
</div>
</div>
</>
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.feedbackDivider {
border-top: 2px solid var(--gray-400);
margin-top: 3rem;
margin-bottom: 3em;
}

.feedbackCard {
background-color: var(--gray-100);
border: 1px solid var(--gray-200);
Expand Down

0 comments on commit e32c7f1

Please sign in to comment.