Skip to content

Commit

Permalink
feat: add submit dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
junjieit committed Jan 26, 2025
1 parent df0950b commit bc9038d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 13 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.2-beta.9",
"version": "3.0.2-beta.10",
"description": "DODO Widgets",
"source": "src/index.tsx",
"types": "dist/types/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export default function WithExecutionDialog({
gap: 20,
p: 20,
minHeight: 208,
minWidth: isMobile ? '100%' : 340,
width: isMobile ? '100%' : 340,
textAlign: 'center',
}}
>
Expand Down Expand Up @@ -321,6 +321,9 @@ export default function WithExecutionDialog({
{showing.subtitle && (
<Box
sx={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
mt: 8,
color: 'text.secondary',
typography: 'body2',
Expand Down Expand Up @@ -351,6 +354,9 @@ export default function WithExecutionDialog({
{showing.subtitle && (
<Box
sx={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
mt: 8,
color: 'text.secondary',
typography: 'body2',
Expand Down
10 changes: 5 additions & 5 deletions packages/dodoex-widgets/src/locales/en-US.po
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ msgid "Start Time"
msgstr "Start Time"

#: src/components/ErrorMessageDialog.tsx:63
#: src/components/WithExecutionDialog/index.tsx:444
#: src/components/WithExecutionDialog/index.tsx:450
msgid "Dismiss"
msgstr "Dismiss"

Expand Down Expand Up @@ -369,7 +369,7 @@ msgstr "Initial Tokens"
msgid "This token is on"
msgstr "This token is on"

#: src/components/WithExecutionDialog/index.tsx:349
#: src/components/WithExecutionDialog/index.tsx:352
msgid "Please confirm in wallet"
msgstr "Please confirm in wallet"

Expand Down Expand Up @@ -1824,7 +1824,7 @@ msgid "The mid price needs to be greater than {min} and less than 100,000,000"
msgstr "The mid price needs to be greater than {min} and less than 100,000,000"

#: src/components/ErrorMessageDialog.tsx:39
#: src/components/WithExecutionDialog/index.tsx:409
#: src/components/WithExecutionDialog/index.tsx:415
msgid "Something went wrong."
msgstr "Something went wrong."

Expand Down Expand Up @@ -2315,7 +2315,7 @@ msgstr "Dynamic slippage is {recommendSlippage}% , the current slippage setting
msgid "High"
msgstr "High"

#: src/components/WithExecutionDialog/index.tsx:444
#: src/components/WithExecutionDialog/index.tsx:450
msgid "Close"
msgstr "Close"

Expand Down Expand Up @@ -2353,7 +2353,7 @@ msgstr "My Pools (PMM)"
msgid "Starting price"
msgstr "Starting price"

#: src/components/WithExecutionDialog/index.tsx:341
#: src/components/WithExecutionDialog/index.tsx:344
msgid "OK"
msgstr "OK"

Expand Down
10 changes: 5 additions & 5 deletions packages/dodoex-widgets/src/locales/zh-CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ msgid "Start Time"
msgstr ""

#: src/components/ErrorMessageDialog.tsx:63
#: src/components/WithExecutionDialog/index.tsx:444
#: src/components/WithExecutionDialog/index.tsx:450
msgid "Dismiss"
msgstr "忽略"

Expand Down Expand Up @@ -369,7 +369,7 @@ msgstr ""
msgid "This token is on"
msgstr "该代币在"

#: src/components/WithExecutionDialog/index.tsx:349
#: src/components/WithExecutionDialog/index.tsx:352
msgid "Please confirm in wallet"
msgstr ""

Expand Down Expand Up @@ -1824,7 +1824,7 @@ msgid "The mid price needs to be greater than {min} and less than 100,000,000"
msgstr ""

#: src/components/ErrorMessageDialog.tsx:39
#: src/components/WithExecutionDialog/index.tsx:409
#: src/components/WithExecutionDialog/index.tsx:415
msgid "Something went wrong."
msgstr "发生异常错误."

Expand Down Expand Up @@ -2315,7 +2315,7 @@ msgstr ""
msgid "High"
msgstr ""

#: src/components/WithExecutionDialog/index.tsx:444
#: src/components/WithExecutionDialog/index.tsx:450
msgid "Close"
msgstr "关闭"

Expand Down Expand Up @@ -2353,7 +2353,7 @@ msgstr ""
msgid "Starting price"
msgstr ""

#: src/components/WithExecutionDialog/index.tsx:341
#: src/components/WithExecutionDialog/index.tsx:344
msgid "OK"
msgstr ""

Expand Down
9 changes: 8 additions & 1 deletion packages/dodoex-widgets/src/providers/queryClient/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import { QueryClient } from '@tanstack/react-query';

export const queryClient = new QueryClient();
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
// When the return data is Proxy, this method will convert the lost proxy attribute
structuralSharing: false,
},
},
});

0 comments on commit bc9038d

Please sign in to comment.