-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 32794: Verander fullscreen error van scherm in component
- Loading branch information
Showing
19 changed files
with
115 additions
and
106 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
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
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,27 @@ | ||
import {Header} from '@/components/features/header/Header' | ||
import {useNavigation} from '@/hooks/navigation/useNavigation' | ||
import {useRoute} from '@/hooks/navigation/useRoute' | ||
import {useSelector} from '@/hooks/redux/useSelector' | ||
import {selectIsBottomSheetPresentRouteNames} from '@/store/slices/bottomSheet' | ||
|
||
export const ScreenHeader = () => { | ||
const isBottomSheetPresentRouteNames = useSelector( | ||
selectIsBottomSheetPresentRouteNames, | ||
) | ||
const navigation = useNavigation() | ||
const route = useRoute() | ||
const isBottomSheetPresent = isBottomSheetPresentRouteNames.includes( | ||
route.name, | ||
) | ||
|
||
return ( | ||
!!isBottomSheetPresent && | ||
!!route && ( | ||
<Header | ||
back={{}} | ||
navigation={navigation} | ||
route={route} | ||
/> | ||
) | ||
) | ||
} |
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 was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...ponents/features/screen/error/Content.tsx → src/components/ui/feedback/error/Content.tsx
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import {Button} from '@/components/ui/buttons/Button' | ||
import {Box} from '@/components/ui/containers/Box' | ||
import {FullScreenErrorContent} from '@/components/ui/feedback/error/Content' | ||
import {FullScreenErrorHeader} from '@/components/ui/feedback/error/Header' | ||
import {FullScreenErrorProps} from '@/components/ui/feedback/error/types' | ||
import {Column} from '@/components/ui/layout/Column' | ||
import {useDeviceContext} from '@/hooks/useDeviceContext' | ||
|
||
export const FullScreenError = ({ | ||
buttonAccessibilityLabel, | ||
buttonLabel, | ||
error, | ||
text, | ||
Image, | ||
onPress, | ||
testID, | ||
title, | ||
TopComponent, | ||
withFacadesBackground = true, | ||
...columnProps | ||
}: FullScreenErrorProps) => { | ||
const {isPortrait} = useDeviceContext() | ||
|
||
return ( | ||
<Column | ||
grow={1} | ||
{...columnProps}> | ||
{!!isPortrait && ( | ||
<FullScreenErrorHeader | ||
error={error} | ||
isPortrait={isPortrait} | ||
testID={testID + 'Header'} | ||
text={text} | ||
title={title} | ||
TopComponent={TopComponent} | ||
/> | ||
)} | ||
<FullScreenErrorContent | ||
error={error} | ||
Image={Image} | ||
isPortrait={isPortrait} | ||
testID={testID + 'Content'} | ||
text={text} | ||
title={title} | ||
TopComponent={TopComponent} | ||
withFacadesBackground={withFacadesBackground} | ||
/> | ||
<Box inset="md"> | ||
<Button | ||
accessibilityLabel={buttonAccessibilityLabel} | ||
label={buttonLabel} | ||
onPress={onPress} | ||
testID={testID + 'Button'} | ||
/> | ||
</Box> | ||
</Column> | ||
) | ||
} |
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
4 changes: 2 additions & 2 deletions
4
src/modules/city-pass/components/error/CityPassFullScreenError.tsx
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
2 changes: 1 addition & 1 deletion
2
src/modules/construction-work/components/project/ProjectNews.tsx
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
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.