-
Notifications
You must be signed in to change notification settings - Fork 89
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
Widget UI + configurator #3227
Widget UI + configurator #3227
Conversation
…/index.tsx Co-authored-by: Alexandr Kazachenko <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA 2 out of 3 committers have signed the CLA. |
New and updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
<FortuneWidget /> | ||
</FeatureGuard> | ||
|
||
{!isInjectedWidgetMode && ( |
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.
Don't render Fortune Widget and Appzi button for Widget mode
@@ -128,6 +130,8 @@ export default class ErrorBoundary extends React.Component<PropsWithChildren, Er | |||
|
|||
return ( | |||
<AppWrapper> | |||
|
|||
{!isInjectedWidget() && |
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.
Hide the normal header (logo/menu/etc) in Widget mode
|
||
const singleMenuItem = menuItems.length === 1; | ||
|
||
return isDropdown ? ( |
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.
Render the menu in dropdown form if this is widget mode
to one of our supported networks. | ||
</Trans> | ||
</p> | ||
{!isInjectedWidget && ( |
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.
hide extra messaging in your orders overview when in widget mode
interface Palette { | ||
cow: { |
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.
adding custom palette items
@@ -0,0 +1,25 @@ | |||
import { useState, useCallback } from 'react'; |
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.
creating a reusable hook to control the orders panel (user activity modal)
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.
Refactored it into accountModalStateAtom
… widget-ui-6 # Conflicts: # package.json # yarn.lock
Summary