Skip to content

Commit

Permalink
chore: cleanup file names
Browse files Browse the repository at this point in the history
  • Loading branch information
msieroslawska committed Oct 13, 2023
1 parent 5212942 commit db569fd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const InternalEntryCard = React.memo((props: InternalEntryCard) => {

InternalEntryCard.displayName = 'ReferenceCard';

interface FetchingWrappedResourceCardProps {
interface FetchingWrappedResourceBlockCardProps {
link: ResourceLink['sys'];
isDisabled: boolean;
isSelected: boolean;
Expand All @@ -59,7 +59,7 @@ interface FetchingWrappedResourceCardProps {
onRemove?: VoidFunction;
}

export const FetchingWrappedResourceCard = (props: FetchingWrappedResourceCardProps) => {
export const FetchingWrappedResourceBlockCard = (props: FetchingWrappedResourceBlockCardProps) => {
const { link, onEntityFetchComplete } = props;
const { data, status, error } = useResource(link.linkType, link.urn);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { useContentfulEditor } from '../../ContentfulEditorProvider';
import { Element, findNodePath, removeNodes, RenderElementProps } from '../../internal';
import { useSdkContext } from '../../SdkProvider';
import { useLinkTracking } from '../links-tracking';
import { FetchingWrappedResourceCard } from '../shared/FetchingWrappedResourceCard';
import { LinkedBlockWrapper } from '../shared/LinkedBlockWrapper';
import { FetchingWrappedResourceBlockCard } from './FetchingWrappedResourceBlockCard';

export type LinkedResourceBlockProps = {
element: Element & {
Expand Down Expand Up @@ -45,7 +45,7 @@ export function LinkedResourceBlock(props: LinkedResourceBlockProps) {
attributes={attributes}
link={element.data.target}
card={
<FetchingWrappedResourceCard
<FetchingWrappedResourceBlockCard
sdk={sdk}
link={link}
isDisabled={isDisabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { INLINES } from '@contentful/rich-text-types';

const { getEntryTitle, getEntryStatus } = entityHelpers;

interface FetchingWrappedInlineResourceCardProps {
interface FetchingWrappedResourceInlineCardProps {
link: ResourceLink['sys'];
sdk: FieldAppSDK;
isSelected: boolean;
Expand All @@ -18,7 +18,7 @@ interface FetchingWrappedInlineResourceCardProps {
onEntityFetchComplete?: VoidFunction;
}

export function FetchingWrappedInlineResourceCard(props: FetchingWrappedInlineResourceCardProps) {
export function FetchingWrappedResourceInlineCard(props: FetchingWrappedResourceInlineCardProps) {
const { link, onEntityFetchComplete } = props;
const { data, status: requestStatus } = useResource(link.linkType, link.urn);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Element, findNodePath, removeNodes, RenderElementProps } from '../../in
import { useSdkContext } from '../../SdkProvider';
import { useLinkTracking } from '../links-tracking';
import { LinkedInlineWrapper } from '../shared/LinkedInlineWrapper';
import { FetchingWrappedInlineResourceCard } from './FetchingWrappedInlineResourceCard';
import { FetchingWrappedResourceInlineCard } from './FetchingWrappedResourceInlineCard';

export type LinkedResourceInlineProps = {
element: Element & {
Expand Down Expand Up @@ -40,7 +40,7 @@ export function LinkedResourceInline(props: LinkedResourceInlineProps) {
attributes={attributes}
link={element.data.target}
card={
<FetchingWrappedInlineResourceCard
<FetchingWrappedResourceInlineCard
sdk={sdk}
link={link}
isDisabled={isDisabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { configure, render, waitFor } from '@testing-library/react';
import publishedCT from '../__fixtures__/published_content_type.json';
import publishedEntry from '../__fixtures__/published_entry.json';
import space from '../__fixtures__/space.json';
import { FetchingWrappedResourceCard } from '../FetchingWrappedResourceCard';
import { FetchingWrappedResourceBlockCard } from '../../EmbeddedResourceBlock/FetchingWrappedResourceBlockCard';

configure({
testIdAttribute: 'data-test-id',
Expand Down Expand Up @@ -54,7 +54,7 @@ beforeEach(() => {
function renderResourceCard({ linkType = 'Contentful:Entry', entryUrn = resolvableEntryUrn } = {}) {
return render(
<EntityProvider sdk={sdk}>
<FetchingWrappedResourceCard
<FetchingWrappedResourceBlockCard
isDisabled={false}
isSelected={false}
sdk={sdk}
Expand Down

0 comments on commit db569fd

Please sign in to comment.