diff --git a/packages/login/package.json b/packages/login/package.json index 89d00e66..bb817d52 100644 --- a/packages/login/package.json +++ b/packages/login/package.json @@ -39,10 +39,11 @@ }, "dependencies": { "axios": "^0.21.0", + "file-loader": "^6.2.0", "react": "^17.0.1", "react-dom": "^17.0.1", "react-intl": "^5.10.6", "react-recaptcha-v3": "^2.0.1", "react-router-dom": "^5.2.0" } -} \ No newline at end of file +} diff --git a/packages/login/src/app.tsx b/packages/login/src/app.tsx index 3488a762..090c618f 100644 --- a/packages/login/src/app.tsx +++ b/packages/login/src/app.tsx @@ -1,12 +1,12 @@ import React, { useEffect, useState } from 'react'; -import LoginPage from './LoginPage'; -import { RegistrationSuccessPage, RegistationFormPage } from './RegistrationPage'; +import LoginPage from './components/LoginPage'; +import { RegistrationSuccessPage, RegistationFormPage } from './components/RegistrationPage'; import { IntlProvider } from 'react-intl' import { Route, Switch, - Redirect + Redirect, } from 'react-router-dom'; function loadLocaleData(language: string) { diff --git a/packages/login/src/Footer.tsx b/packages/login/src/components/Footer.tsx similarity index 100% rename from packages/login/src/Footer.tsx rename to packages/login/src/components/Footer.tsx diff --git a/packages/login/src/Header.tsx b/packages/login/src/components/Header.tsx similarity index 92% rename from packages/login/src/Header.tsx rename to packages/login/src/components/Header.tsx index 96d0774c..101fcb7d 100644 --- a/packages/login/src/Header.tsx +++ b/packages/login/src/components/Header.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { FormattedMessage } from 'react-intl' -//const logo = require('./images/header-logo.png') +//const logo = require('../images/header-logo.png') interface HeaderProps { type: string; @@ -33,7 +33,7 @@ class Header extends React.Component { return (