-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set up tutorial #1192
set up tutorial #1192
Conversation
Auto Deploy Pull RequestYour domain kyberswap-interface-1192.pr.kyberengineering.io has been created. Notes
|
81317c5
to
f52022a
Compare
ec67ced
to
611c3f9
Compare
setup tutorial set up tutorial . . . . . . v . . . . . update fontsize css update update css css tracking fix conflict update tut merge . done custom spotlight revert package.json save lockfile update feedback fix back btn update texxt update title rm unuse rebuild fix: wrong position fixx: wrong mask target fix bug f5 show tut add welcome popup refactor refactor optimize . . , test eslint .
a6f6de6
to
410562f
Compare
1a1c4aa
to
0b11ddb
Compare
<> | ||
<BrowserView> | ||
<BrowserStyle hasArrow={!!props.hasArrow} customStyle={props.browserCustomStyle}> | ||
if (isMobile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const openTutorialSwapGuide = () => { | ||
setShowTutorialSwapGuide({ show: true, step: 0 }) | ||
mixpanelHandler(MIXPANEL_TYPE.TUTORIAL_CLICK_START) | ||
toggle() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useCallback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont see any performance problems here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You left many place without useCallback
. Oneday one of them have performance issue and someone have to trace back every of your missed. Should add useCallback
when posible. Also it help mantainer who read your code know that these function is protected guarantee by useCallback
, not having to check if it's have issue or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah no problem at all, Nam should tell a bit more about why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any update on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... update what? You guys not seeing my message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, that function is used only for onClick.
No need memoize it.
We will memorize it if needed.
The more we use, the more Ram it costs.
updated all suggestions, except the problem we are discussing/confusing. @namgold @hungdoansy |
Auto Deploy Pull RequestYour domain kyberswap-interface-1192.pr.kyberengineering.io has been revoked because: PR closed. Notes
|
* fix bug params currency (#1244) * feat(campaign): enter now go to swap with first eligible token (#1240) * Change Banner to Polygon Campaign (#1245) * feat(farm): elastic (#1247) * fix: staked amount (#1248) * fix: farm apr (#1249) * improve: farm ux (#1250) * Do minor UI improvement (#1246) * chore: increase gap in TransactionConfirmationModal * chore: gap in TransactionPopup * chore: adjust spacing in EnterNow in Campaign page * chore: add a hyper link to Elastic pools from Farm * feat(pools): add button to hide pools with low TVL * refactor(about): update to new style/texts * fix: apr farm (#1252) * fix(trending-token-banner): avoid words from breaking at white spaces (#1251) * Support Brave wallet (#1221) * feat: support Brave wallet * refactor(PendingView): simplify props * simplify checkForBraveBrowser * chore: update return type of onClickTryAgain * fix: display Brave wallet identicon * fix: display wallet options on Brave In Brave, window.ethereum is not undefined, so a condition fails and there are no wallet options to choose. * chore(wallet-modal): show hover effect on supported devices only * fix: display correct wallet name by detecting connector * fix bug popup noti overlap + import token(#1255) * fix bug popup noti overlap * fix bug import token * feat: add banner for polygon lido farming (#1256) * fix: hide ATH pro live chart * redact wallet address and tx_hash * switch basic chart to priorities coingecko api * revert debug * hide ATH pro live chart Co-authored-by: nguyenhuudungz <[email protected]> * fix: ath price chart and reward price (#1258) * fix(farm): get reward token price from market (#1259) * feat: tutorial swap page (#1192) * refactor(tx-modal): show correct wallet to add token to (#1260) * chore: update .env.dev (#1262) * feat: support emergency withdraw (#1263) * add top banner (#1264) * update blog link * fix(farm): mistake in withdraw condition * fix: update text (#1265) * fix: can not withdraw on ended tab (#1266) * feat: switch banner position (#1267) * fix: can not withdraw on ended tab (#1268) * Update nginx.conf * refactor: remove unused constant (#1269) * fix: revert to public rpc for bsc Co-authored-by: Nguyễn Hoài Danh <[email protected]> Co-authored-by: nguyenhuudungz <[email protected]> Co-authored-by: Kami Ho <[email protected]> Co-authored-by: Hung Doan <[email protected]> Co-authored-by: XiaoYhun <[email protected]> Co-authored-by: Viet-Anh Duong <[email protected]>
setting
=>view
to see this feature.