Skip to content

Commit

Permalink
Fix the custom field example (#7830)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown authored and dcousens committed Sep 15, 2022
1 parent 0fe40e3 commit 37e6566
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/custom-field/1-text-field/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function text<ListTypeInfo extends BaseListTypeInfo>({
return value;
},
}),
views: require.resolve('./views'),
views: require.resolve('./views.tsx'),
getAdminMeta() {
return {};
},
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-field/2-stars-field/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const stars =
return value;
},
}),
views: require.resolve('./views'),
views: require.resolve('./views.tsx'),
getAdminMeta() {
return { maxStars };
},
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-field/3-pair-field/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function pair<ListTypeInfo extends BaseListTypeInfo>({
return resolveOutput(value);
},
}),
views: require.resolve('./views'),
views: require.resolve('./views.tsx'),
getAdminMeta() {
return {};
},
Expand Down

0 comments on commit 37e6566

Please sign in to comment.