Skip to content

Commit

Permalink
feat: change point tag style
Browse files Browse the repository at this point in the history
  • Loading branch information
junjieit committed Oct 30, 2024
1 parent 7107e43 commit 5ada256
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 35 deletions.
2 changes: 1 addition & 1 deletion packages/dodoex-widgets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dodoex/widgets",
"version": "3.0.0-taiko.40",
"version": "3.0.0-taiko.41",
"description": "DODO Widgets",
"source": "src/index.tsx",
"types": "dist/types/index.d.ts",
Expand Down
64 changes: 33 additions & 31 deletions packages/dodoex-widgets/src/components/LiquidityLpPartnerReward.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,42 +110,44 @@ export default function LiquidityLpPartnerReward({
title={
<Box
sx={{
width: 240,
maxWidth: 240,
whiteSpace: 'pre-wrap',
}}
>
{item.partner.introduction}
<Box
component="a"
target="_blank"
href={item.partner.link}
rel="noopener noreferrer"
sx={{
display: 'flex',
alignItems: 'center',
gap: 4,
color: 'primary.main',
'&:hover': {
opacity: 0.5,
},
}}
>
<Trans>Learn more</Trans>{' '}
<svg
width="14"
height="14"
viewBox="0 0 14 14"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{!!item.partner.link && (
<Box
component="a"
target="_blank"
href={item.partner.link}
rel="noopener noreferrer"
sx={{
display: 'flex',
alignItems: 'center',
gap: 4,
color: 'primary.main',
'&:hover': {
opacity: 0.5,
},
}}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M2.91667 2.91667V11.0833H11.0833V7H12.25V11.0833C12.25 11.725 11.725 12.25 11.0833 12.25H2.91667C2.26917 12.25 1.75 11.725 1.75 11.0833V2.91667C1.75 2.275 2.26917 1.75 2.91667 1.75H7V2.91667H2.91667ZM8.16667 2.91667V1.75H12.25V5.83333H11.0833V3.73917L5.34917 9.47333L4.52667 8.65083L10.2608 2.91667H8.16667Z"
fill="currentColor"
/>
</svg>
</Box>
<Trans>Learn more</Trans>{' '}
<svg
width="14"
height="14"
viewBox="0 0 14 14"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M2.91667 2.91667V11.0833H11.0833V7H12.25V11.0833C12.25 11.725 11.725 12.25 11.0833 12.25H2.91667C2.26917 12.25 1.75 11.725 1.75 11.0833V2.91667C1.75 2.275 2.26917 1.75 2.91667 1.75H7V2.91667H2.91667ZM8.16667 2.91667V1.75H12.25V5.83333H11.0833V3.73917L5.34917 9.47333L4.52667 8.65083L10.2608 2.91667H8.16667Z"
fill="currentColor"
/>
</svg>
</Box>
)}
</Box>
}
>
Expand Down
4 changes: 3 additions & 1 deletion packages/dodoex-widgets/src/hooks/useGraphQLRequests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { GraphQLRequests } from '@dodoex/api';
import { useUserOptions } from '../components/UserOptionsProvider';

export const graphQLRequestsLocal = new GraphQLRequests();
export const graphQLRequestsLocal = new GraphQLRequests({
// url: 'https://api.gcp.dxd.ink/frontend-graphql',
});

export function useGraphQLRequests() {
const { graphQLRequests } = useUserOptions();
Expand Down
2 changes: 1 addition & 1 deletion packages/dodoex-widgets/src/locales/en-US.po
Original file line number Diff line number Diff line change
Expand Up @@ -1966,6 +1966,6 @@ msgstr "Insufficient balance"
msgid "Private"
msgstr "Private"

#: src/components/LiquidityLpPartnerReward.tsx:133
#: src/components/LiquidityLpPartnerReward.tsx:134
msgid "Learn more"
msgstr "Learn more"
2 changes: 1 addition & 1 deletion packages/dodoex-widgets/src/locales/zh-CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -1966,6 +1966,6 @@ msgstr "余额不足"
msgid "Private"
msgstr ""

#: src/components/LiquidityLpPartnerReward.tsx:133
#: src/components/LiquidityLpPartnerReward.tsx:134
msgid "Learn more"
msgstr ""

0 comments on commit 5ada256

Please sign in to comment.