Skip to content

Commit

Permalink
feat: [IOCOM-851] Removed view reference (#5511)
Browse files Browse the repository at this point in the history
## Short description
This PR removes the view ref from the Alert in the new DS message
details screen.

## List of changes proposed in this pull request
- Removed the view ref

## How to test
Same as #5507
  • Loading branch information
Vangaorth authored Feb 16, 2024
1 parent 54b6132 commit 39a2611
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"dependencies": {
"@babel/plugin-transform-regenerator": "^7.18.6",
"@gorhom/bottom-sheet": "^4.1.5",
"@pagopa/io-app-design-system": "1.23.1",
"@pagopa/io-app-design-system": "1.23.2",
"@pagopa/io-pagopa-commons": "^3.1.0",
"@pagopa/io-react-native-crypto": "^0.2.1",
"@pagopa/io-react-native-login-utils": "^1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,6 @@ exports[`OperationResultScreenContent should match the snapshot with default pro
}
>
<View
entering={[Function]}
exiting={[Function]}
style={
Array [
Expand Down
7 changes: 2 additions & 5 deletions ts/features/messages/screens/MessageDetailsScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { createRef, useCallback } from "react";
import { ScrollView, View } from "react-native";
import React, { useCallback } from "react";
import { ScrollView } from "react-native";
import {
Alert,
ContentWrapper,
Expand Down Expand Up @@ -49,8 +49,6 @@ export const MessageDetailsScreen = (
const dispatch = useIODispatch();
const navigation = useIONavigation();

const viewRef = createRef<View>();

const message = pipe(
useIOSelector(state => getPaginatedMessageById(state, messageId)),
pot.toOption,
Expand Down Expand Up @@ -139,7 +137,6 @@ export const MessageDetailsScreen = (
<VSpacer size={8} />
<Alert
testID="due-date-alert"
viewRef={viewRef}
variant="warning"
action={I18n.t("features.messages.alert.action")}
onPress={constNull}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,6 @@ exports[`MessageAttachment Should match the snapshot when everything went fine 1
}
>
<View
entering={[Function]}
exiting={[Function]}
style={
Array [
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3277,10 +3277,10 @@
dependencies:
"@types/node" ">= 8"

"@pagopa/[email protected].1":
version "1.23.1"
resolved "https://registry.yarnpkg.com/@pagopa/io-app-design-system/-/io-app-design-system-1.23.1.tgz#acdc3cb37cc157c60a5a3f993223141757f49c8f"
integrity sha512-pOd36qeV6c9dALih/3+ro5g/+izQWVf5J0u4sKSr0LF9zTBZ/sDRSpd4Z3/qrrXkKcopOkMEg3lqR6TJrdsGeA==
"@pagopa/[email protected].2":
version "1.23.2"
resolved "https://registry.yarnpkg.com/@pagopa/io-app-design-system/-/io-app-design-system-1.23.2.tgz#739da99711af7c208b547d7c0b5cc82c77e1bad3"
integrity sha512-MqQnd5bHxGwXd+KdAb95e0Onw2C2Ic+GpJnIUSWN15sggb4oF/bl14tViMhV2yCJCpq7dYaiS8GmdWQjl2fQIQ==
dependencies:
"@pagopa/ts-commons" "^12.0.0"
"@testing-library/jest-native" "^5.4.2"
Expand Down

0 comments on commit 39a2611

Please sign in to comment.