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:
parent
1986f13275
commit
9991a544aa
6 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue