Skip to content

Commit

Permalink
feat: update translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangtaofeng committed Jan 24, 2024
1 parent 634ac5d commit e19a15a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
12 changes: 10 additions & 2 deletions src/components/flow/SwitchContent/MobileContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { FC } from "react"
import style from "./index.module.css"
import TabLottie from "../TabLottie"
import { TAB_LOTTIE_TYPE } from "../constants"
import Translate from "@docusaurus/Translate"

interface MobileContentProps {
tabs: {
Expand All @@ -28,10 +29,17 @@ const MobileContent: FC<MobileContentProps> = ({ tabs, contents }) => {
isPlay
lottieType={TAB_LOTTIE_TYPE.ICON}
/>
<div>
<div className="flex flex-col gap-[4px]">
<div className={style.tabTitleContainerStyle}>
<p className={style.tabTitleStyle}>{tab.title}</p>
{tab.hasExtra && <span className={style.betaStyle}>Beta</span>}
{tab.hasExtra && (
<span className={style.betaStyle}>
{" "}
<Translate id="illa_flow.how_it_works.coming_soon">
Coming soon
</Translate>
</span>
)}
</div>
<p className={style.tabDescStyle}>{tab.desc}</p>
</div>
Expand Down
11 changes: 9 additions & 2 deletions src/components/flow/SwitchContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { TAB_LOTTIE_TYPE } from "./constants"
import { translate } from "@docusaurus/Translate"
import MobileContent from "./MobileContent"
import Content from "./Content"
import Translate from "@docusaurus/Translate"

const CONTENT = {
header: {
Expand Down Expand Up @@ -113,10 +114,16 @@ const SwitchContent: FC = () => {
isPlay={activeTab === tab.id}
lottieType={TAB_LOTTIE_TYPE.ICON}
/>
<div>
<div className="flex flex-col gap-[8px]">
<div className={style.tabTitleContainerStyle}>
<p className={style.tabTitleStyle}>{tab.title}</p>
{tab.hasExtra && <span className={style.betaStyle}>Beta</span>}
{tab.hasExtra && (
<span className={style.betaStyle}>
<Translate id="illa_flow.how_it_works.coming_soon">
Coming soon
</Translate>
</span>
)}
</div>
<p className={style.tabDescStyle}>{tab.desc}</p>
</div>
Expand Down

0 comments on commit e19a15a

Please sign in to comment.