Skip to content
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

Replaced help button #1544

Merged
merged 9 commits into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { PermissionsProvider } from './contexts/PermissionsContext'
import { IdentityProvider } from './components/IdentityManager/IdentityManager'
import { LocalIdentityModalProvider } from './components/LocalIdentityModal/LocalIdentityModalManager'
import LocalIdentityModal from './components/LocalIdentityModal/LocalIdentityModal'
import HelpScoutBeacon from './components/HelpScoutBeacon/HelpScoutBeacon'
import GlobalPreferences from './components/GlobalPreferences/GlobalPreferences'
import CustomToast from './components/CustomToast/CustomToast'
import OrgView from './components/OrgView/OrgView'
Expand Down Expand Up @@ -402,8 +401,6 @@ class App extends React.Component {
apps={appsWithIdentifiers}
wrapper={wrapper}
/>

<HelpScoutBeacon apps={apps} />
</ActivityProvider>
</FavoriteDaosProvider>
</LocalIdentityModalProvider>
Expand Down
4 changes: 1 addition & 3 deletions src/components/CustomToast/CustomToast.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import React from 'react'
import PropTypes from 'prop-types'
import { GU, ToastHub, useViewport } from '@aragon/ui'
import { useHelpScout } from '../HelpScoutBeacon/useHelpScout'

const TIMEOUT_TOAST = 4000

function CustomToast({ children }) {
const { below } = useViewport()
const { optedOut } = useHelpScout()
return (
<ToastHub
shift={optedOut ? 0 : below('medium') ? 5.5 * GU : 6.5 * GU}
shift={true ? 0 : below('medium') ? 5.5 * GU : 6.5 * GU}
timeout={TIMEOUT_TOAST}
>
{children}
Expand Down
2 changes: 0 additions & 2 deletions src/components/Error/ErrorScreen.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
import { Card, GU, useTheme, useViewport } from '@aragon/ui'
import HelpScoutBeacon from '../HelpScoutBeacon/HelpScoutBeacon'
import HomeButton from '../HomeButton/HomeButton'

import eagleSvg from '../../assets/eagle.svg'
Expand Down Expand Up @@ -57,7 +56,6 @@ function ErrorScreen({ children }) {
{children}
</Container>
</div>
<HelpScoutBeacon apps={[]} />
</div>
)
}
Expand Down
6 changes: 1 addition & 5 deletions src/components/GlobalPreferences/GlobalPreferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,20 @@ import { useRouting } from '../../routing'
import Network from './Network/Network'
import Notifications from './Notifications/Notifications'
import CustomLabels from './CustomLabels/CustomLabels'
import HelpAndFeedback from './HelpAndFeedback/HelpAndFeedback'
import SharedIdentities from './SharedIdentities/SharedIdentities'
import useSharedLink from './SharedIdentities/useSharedLink'

const SECTIONS = new Map([
['custom-labels', 'Custom Labels'],
['network', 'Network'],
['notifications', 'Notifications'],
['help-and-feedback', 'Help and feedback'],
['notifications', 'Notifications']
])
const SECTION_PATHS = Array.from(SECTIONS.keys())
const SECTION_VALUES = Array.from(SECTIONS.values())

const CUSTOM_LABELS_INDEX = 0
const NETWORK_INDEX = 1
const NOTIFICATIONS_INDEX = 2
const HELP_AND_FEEDBACK_INDEX = 3

const AnimatedDiv = animated.div

Expand Down Expand Up @@ -136,7 +133,6 @@ function GlobalPreferencesContent({
navigationIndex={2}
/>
)}
{sectionIndex === HELP_AND_FEEDBACK_INDEX && <HelpAndFeedback />}
</main>
</React.Fragment>
)}
Expand Down
136 changes: 0 additions & 136 deletions src/components/GlobalPreferences/HelpAndFeedback/HelpAndFeedback.js

This file was deleted.

Binary file not shown.
68 changes: 0 additions & 68 deletions src/components/HelpScoutBeacon/BeaconHeadScripts.js

This file was deleted.

Loading