-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48887 from shubham1206agra/fix-notification-prefe…
…rence Fix notification preference by defaulting to hidden
- Loading branch information
Showing
9 changed files
with
246 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default function useResponsiveLayout() { | ||
return { | ||
shouldUseNarrowLayout: false, | ||
isSmallScreenWidth: false, | ||
isInNarrowPaneModal: false, | ||
isExtraSmallScreenHeight: false, | ||
isExtraSmallScreenWidth: false, | ||
isMediumScreenWidth: false, | ||
onboardingIsMediumOrLargerScreenWidth: true, | ||
isLargeScreenWidth: true, | ||
isSmallScreen: false, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default function useResponsiveLayout() { | ||
return { | ||
shouldUseNarrowLayout: false, | ||
isSmallScreenWidth: false, | ||
isInNarrowPaneModal: false, | ||
isExtraSmallScreenHeight: false, | ||
isExtraSmallScreenWidth: false, | ||
isMediumScreenWidth: false, | ||
onboardingIsMediumOrLargerScreenWidth: true, | ||
isLargeScreenWidth: true, | ||
isSmallScreen: false, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,11 @@ describe('SidebarLinks', () => { | |
|
||
// Initialize the network key for OfflineWithFeedback | ||
Onyx.merge(ONYXKEYS.NETWORK, {isOffline: false}); | ||
Onyx.clear().then(waitForBatchedUpdates); | ||
TestHelper.signInWithTestUser(1, '[email protected]', undefined, undefined, 'One').then(waitForBatchedUpdates); | ||
}); | ||
|
||
afterEach(() => { | ||
Onyx.clear(); | ||
}); | ||
|
||
test('[SidebarLinks] should render Sidebar with 500 reports stored', async () => { | ||
|
@@ -87,7 +91,7 @@ describe('SidebarLinks', () => { | |
* Query for display names of participants [1, 2]. | ||
* This will ensure that the sidebar renders a list of items. | ||
*/ | ||
await screen.findAllByText('One, Two'); | ||
await screen.findAllByText('Email Two'); | ||
}; | ||
|
||
await waitForBatchedUpdates(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.