/**
 * Copyright (C) 2019 Mailvelope GmbH
 * Licensed under the GNU Affero General Public License version 3
 */

import React from 'react';
import ReactDOM from 'react-dom';
import * as l10n from '../../lib/l10n';
import RecoverySheet from './RecoverySheet';

document.addEventListener('DOMContentLoaded', init);

l10n.mapToLocal();

function init() {
  const query = new URLSearchParams(document.location.search);
  // component id
  const id = query.get('id') || '';
  // brand if any
  const brand = query.get('brand') || '';
  // component used as a container (client API)
  const root = document.createElement('div');
  ReactDOM.render(<RecoverySheet id={id} brand={brand} />, document.body.appendChild(root));
}

/**
 * Copyright (C) 2019 Mailvelope GmbH
 * Licensed under the GNU Affero General Public License version 3
 */

import React from 'react';
import ReactDOM from 'react-dom';
import * as l10n from '../../lib/l10n';
import RecoverySheet from './recoverySheet';

document.addEventListener('DOMContentLoaded', init);

l10n.mapToLocal();

function init() {
  const query = new URLSearchParams(document.location.search);
  // component id
  const id = query.get('id') || '';
  // brand if any
  const brand = query.get('brand') || '';
  // component used as a container (client API)
  const root = document.createElement('div');
  ReactDOM.render(<RecoverySheet id={id} brand={brand} />, document.body.appendChild(root));
}

Fix recoverySheet import for case sensitive build environment
Fix recoverySheet import for case sensitive build environment
