Skip to content

Commit

Permalink
#520166: fix issues caused by refactoring (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKechashin authored Apr 5, 2022
1 parent 8c0e53f commit f418eb9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type LinkListItemProps = {
key: string;
index: number;
total: number;
field: ResultsFieldLink;
field: LinkField;
};

const LinkListItem = (props: LinkListItemProps) => {
Expand Down Expand Up @@ -61,7 +61,7 @@ export const Default = (props: LinkListProps): JSX.Element => {
index={key}
key={`${key}${element.field.link}`}
total={datasource.children.results.length}
field={element}
field={element.field.link}
/>
));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type RichTextProps = {
fields: Fields;
};

export const RichText = (props: RichTextProps): JSX.Element => {
export const Default = (props: RichTextProps): JSX.Element => {
const text = props.fields ? (
<JssRichText field={props.fields.Text} />
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const ComponentContent = (props: ComponentContentProps) => {
);
};

export const Title = (props: TitleProps): JSX.Element => {
export const Default = (props: TitleProps): JSX.Element => {
const datasource = props.fields?.data?.datasource || props.fields?.data?.contextItem;
const text: TextField = {
value: datasource?.field?.jsonValue?.value,
Expand Down

0 comments on commit f418eb9

Please sign in to comment.