-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into SIW-980-add-identification-spid-provider-l…
…ist-screen
- Loading branch information
Showing
5 changed files
with
190 additions
and
192 deletions.
There are no files selected for viewing
98 changes: 0 additions & 98 deletions
98
ts/features/services/institution/components/InstitutionServicesScreenComponent.tsx
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
ts/features/services/institution/components/ServiceListItemSkeleton.tsx
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
ts/features/services/institution/components/ServiceListSkeleton.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from "react"; | ||
import { View } from "react-native"; | ||
import { | ||
Divider, | ||
IOListItemStyles, | ||
IOStyles | ||
} from "@pagopa/io-app-design-system"; | ||
import Placeholder from "rn-placeholder"; | ||
|
||
const ServiceListItemSkeleton = () => ( | ||
<View style={IOListItemStyles.listItem} accessible={false}> | ||
<View style={IOListItemStyles.listItemInner}> | ||
<View style={IOStyles.flex}> | ||
<Placeholder.Box animate="fade" radius={8} width={"60%"} height={16} /> | ||
</View> | ||
</View> | ||
</View> | ||
); | ||
|
||
type ServiceListSkeletonProps = { | ||
size?: number; | ||
}; | ||
|
||
export const ServiceListSkeleton = ({ size = 3 }: ServiceListSkeletonProps) => ( | ||
<View testID="intitution-services-list-skeleton"> | ||
{Array.from({ length: size }).map((_, index) => ( | ||
<React.Fragment key={index}> | ||
<ServiceListItemSkeleton /> | ||
{index < size - 1 ? <Divider /> : undefined} | ||
</React.Fragment> | ||
))} | ||
</View> | ||
); |
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.