Ensure that all our components have display names

This turns on a lint rule to require display names for all of our components, which makes it a lot easier to find your way around the component tree in React's dev tools.
This commit is contained in:
Robin
2023-12-19 11:00:33 -05:00
parent 0ab3e0e090
commit d95336a7a0
12 changed files with 52 additions and 11 deletions

View File

@@ -122,3 +122,5 @@ export const AvatarInputField = forwardRef<HTMLInputElement, Props>(
);
},
);
AvatarInputField.displayName = "AvatarInputField";

View File

@@ -166,6 +166,8 @@ export const InputField = forwardRef<
},
);
InputField.displayName = "InputField";
interface ErrorMessageProps {
error: Error;
}