Skip to content

Commit

Permalink
Merge branch 'feat/update-reddit-key'
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangtaofeng committed Jan 26, 2024
2 parents 6c596ef + 43c50c1 commit dec9252
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/reddit-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function reddit() {
s.parentNode.insertBefore(t, s)
}
})(window, document)
rdt("init", "a2_e9dpt64dsguj", {
rdt("init", "a2_edw0ai5y5tk6", {
optOut: false,
useDecimalCurrencyValues: true,
aaid: "<AAID-HERE>",
Expand Down
16 changes: 11 additions & 5 deletions src/components/flow/SwitchContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { translate } from "@docusaurus/Translate"
import MobileContent from "./MobileContent"
import Content from "./Content"
import Translate from "@docusaurus/Translate"
import WebhookTabIcon from "@site/static/img/flow/webhookTabIcon.svg"

const CONTENT = {
header: {
Expand Down Expand Up @@ -109,11 +110,16 @@ const SwitchContent: FC = () => {
)}
onClick={() => setActiveTab(tab.id)}
>
<TabLottie
content={tab.icon}
isPlay={activeTab === tab.id}
lottieType={TAB_LOTTIE_TYPE.ICON}
/>
{tab.id === "Webhook" && activeTab !== tab.id ? (
<WebhookTabIcon className="w-[24px] h-[24px]" />
) : (
<TabLottie
content={tab.icon}
isPlay={activeTab === tab.id}
lottieType={TAB_LOTTIE_TYPE.ICON}
/>
)}

<div className="flex flex-col gap-[8px]">
<div className={style.tabTitleContainerStyle}>
<p className={style.tabTitleStyle}>{tab.title}</p>
Expand Down
8 changes: 8 additions & 0 deletions static/img/flow/webhookTabIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dec9252

Please sign in to comment.