made errorAlert as default export

This commit is contained in:
Abhinav-grd 2021-02-09 12:38:45 +05:30
parent d5382f40ca
commit 926a879f63
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ import React from "react";
import { Alert } from "react-bootstrap";
import constants from "utils/strings/constants";
export function ErrorAlert({ errorCode }) {
export default function ErrorAlert({ errorCode }) {
let errorMessage;
switch (errorCode) {
case 402:

View file

@ -29,7 +29,7 @@ import {
getLocalCollections,
} from 'services/collectionService';
import constants from 'utils/strings/constants';
import { ErrorAlert } from './components/ErrorAlert';
import ErrorAlert from './components/ErrorAlert';
const DATE_CONTAINER_HEIGHT = 45;
const IMAGE_CONTAINER_HEIGHT = 200;