Skip to content

Commit

Permalink
feat(website): revise support modal (#1734)
Browse files Browse the repository at this point in the history
* feat(website): revise support modal

* fix(website): fix query throttle

* fix(website): revise support modal

* fix(website): revise support modal
  • Loading branch information
sandren authored Feb 2, 2023
1 parent 932d82e commit 0c195b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion website/src/components/search-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const CustomSearchBox = (props) => {
const { refine } = useSearchBox(props);

const throttledRefine = useMemo(
() => throttle((value) => refine(value), 200, { leading: true, trailing: true }),
() => throttle((value) => refine(value), 200, { trailing: true }),
[refine],
);

Expand Down
8 changes: 4 additions & 4 deletions website/src/components/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const Support = () => {
<div className="mt-4 flex flex-col gap-4">
<Button
to="https://egghead.io/courses/manage-application-state-with-jotai-atoms-2c3a29f0"
className="w-full"
className="w-full dark:!bg-gray-950 dark:hover:!bg-teal-950"
bold
external
>
Expand All @@ -64,15 +64,15 @@ export const Support = () => {
</Button>
<Button
to="https://daishi.gumroad.com/l/learn-jotai/website_qpiwdj8"
className="w-full"
className="w-full dark:!bg-gray-950 dark:hover:!bg-teal-950"
bold
external
>
Learn Simplified Jotai
</Button>
<Button
to="https://daishi.gumroad.com/l/philosophy-of-jotai-1"
className="w-full"
className="w-full dark:!bg-gray-950 dark:hover:!bg-teal-950"
bold
external
>
Expand Down Expand Up @@ -128,7 +128,7 @@ export const Support = () => {
/>
</label>
<div className={cx(hasSubmitted && 'opacity-0')}>
<Button icon="message" onClick={handleSubmit} dark bold>
<Button icon="message" onClick={handleSubmit} dark bold className="dark:!bg-black">
Send inquiry
</Button>
</div>
Expand Down

1 comment on commit 0c195b0

@vercel
Copy link

@vercel vercel bot commented on 0c195b0 Feb 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.