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

fix: enable tours without dev mode #1047

Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 1 addition & 5 deletions packages/legacy/core/App/screens/CredentialOffer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ const CredentialOffer: React.FC<CredentialOfferProps> = ({ navigation, route })
})

useEffect(() => {
const shouldShowTour =
store.preferences.developerModeEnabled &&
enableToursConfig &&
store.tours.enableTours &&
!store.tours.seenCredentialOfferTour
const shouldShowTour = enableToursConfig && store.tours.enableTours && !store.tours.seenCredentialOfferTour
if (shouldShowTour && screenIsFocused) {
start(TourID.CredentialOfferTour)
dispatch({
Expand Down
6 changes: 1 addition & 5 deletions packages/legacy/core/App/screens/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ const Home: React.FC<HomeProps> = () => {
}

useEffect(() => {
const shouldShowTour =
store.preferences.developerModeEnabled &&
enableToursConfig &&
store.tours.enableTours &&
!store.tours.seenHomeTour
const shouldShowTour = enableToursConfig && store.tours.enableTours && !store.tours.seenHomeTour

if (shouldShowTour && screenIsFocused) {
if (store.tours.seenToursPrompt) {
Expand Down
6 changes: 1 addition & 5 deletions packages/legacy/core/App/screens/ListCredentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ const ListCredentials: React.FC = () => {
const screenIsFocused = useIsFocused()

useEffect(() => {
const shouldShowTour =
store.preferences.developerModeEnabled &&
enableToursConfig &&
store.tours.enableTours &&
!store.tours.seenCredentialsTour
const shouldShowTour = enableToursConfig && store.tours.enableTours && !store.tours.seenCredentialsTour

if (shouldShowTour && screenIsFocused) {
start(TourID.CredentialsTour)
Expand Down
6 changes: 1 addition & 5 deletions packages/legacy/core/App/screens/ProofRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,7 @@ const ProofRequest: React.FC<ProofRequestProps> = ({ navigation, route }) => {
})

useEffect(() => {
const shouldShowTour =
store.preferences.developerModeEnabled &&
enableToursConfig &&
store.tours.enableTours &&
!store.tours.seenProofRequestTour
const shouldShowTour = enableToursConfig && store.tours.enableTours && !store.tours.seenProofRequestTour

if (shouldShowTour && screenIsFocused) {
start(TourID.ProofRequestTour)
Expand Down
2 changes: 1 addition & 1 deletion packages/legacy/core/App/screens/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const Settings: React.FC<SettingsProps> = ({ navigation }) => {
...(settings || []),
]

if (enableTours && store.preferences.developerModeEnabled) {
if (enableTours) {
const section = settingsSections.find((item) => item.header.title === t('Settings.AppSettings'))
if (section) {
section.data = [
Expand Down