Resolve default export warnings from Webpack

Webpack was printing several warnings about missing default exports,
particularly from components, where we auto-generate a default import via the
component index.

As part of this, the emoji picker recent handling (which is not a component) is
moved elsewhere to avoid the generated import.
This commit is contained in:
J. Ryan Stinnett 2020-01-24 22:26:28 +00:00
parent 1986f13275
commit 9991a544aa
6 changed files with 5 additions and 5 deletions

View file

@ -641,7 +641,7 @@ const AuthEntryComponents = [
TermsAuthEntry,
];
export function getEntryComponentForLoginType(loginType) {
export default function getEntryComponentForLoginType(loginType) {
for (const c of AuthEntryComponents) {
if (c.LOGIN_TYPE == loginType) {
return c;