Reorganize packages location

This commit is contained in:
Paulo Gustavo Veiga 2020-12-05 22:35:21 -08:00
parent cd72287481
commit 93f68ff8ea
7 changed files with 10 additions and 9 deletions

View File

@ -39,6 +39,7 @@
}, },
"dependencies": { "dependencies": {
"axios": "^0.21.0", "axios": "^0.21.0",
"file-loader": "^6.2.0",
"react": "^17.0.1", "react": "^17.0.1",
"react-dom": "^17.0.1", "react-dom": "^17.0.1",
"react-intl": "^5.10.6", "react-intl": "^5.10.6",

View File

@ -1,12 +1,12 @@
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import LoginPage from './LoginPage'; import LoginPage from './components/LoginPage';
import { RegistrationSuccessPage, RegistationFormPage } from './RegistrationPage'; import { RegistrationSuccessPage, RegistationFormPage } from './components/RegistrationPage';
import { IntlProvider } from 'react-intl' import { IntlProvider } from 'react-intl'
import { import {
Route, Route,
Switch, Switch,
Redirect Redirect,
} from 'react-router-dom'; } from 'react-router-dom';
function loadLocaleData(language: string) { function loadLocaleData(language: string) {

View File

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import { FormattedMessage } from 'react-intl' import { FormattedMessage } from 'react-intl'
//const logo = require('./images/header-logo.png') //const logo = require('../images/header-logo.png')
interface HeaderProps { interface HeaderProps {
type: string; type: string;
@ -33,7 +33,7 @@ class Header extends React.Component<HeaderProps, HeaderProps> {
return ( return (
<nav> <nav>
<div className="header"> <div className="header">
<span className="header-logo"><a href="/"><img src="" alt="logo" /></a></span> <span className="header-logo"><a href="/"><img src={"logo"} alt="logo" /></a></span>
{text} {text}
{signUpButton} {signUpButton}
{signInButton} {signInButton}

View File

@ -4,7 +4,7 @@ import { FormattedMessage, useIntl } from 'react-intl'
import Header from './Header' import Header from './Header'
import Footer from './Footer' import Footer from './Footer'
const css = require('./css/login.css') const css = require('../css/login.css')

View File

@ -8,7 +8,7 @@ import { ReCaptcha } from 'react-recaptcha-v3'
import Header from './Header'; import Header from './Header';
import Footer from './Footer'; import Footer from './Footer';
const css = require('./css/registration.css'); const css = require('../css/registration.css');
interface ErrorMessageDialogProps { interface ErrorMessageDialogProps {

View File

@ -4390,7 +4390,7 @@ file-entry-cache@^6.0.0:
dependencies: dependencies:
flat-cache "^3.0.4" flat-cache "^3.0.4"
file-loader@~6.2.0: file-loader@^6.2.0, file-loader@~6.2.0:
version "6.2.0" version "6.2.0"
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.2.0.tgz#baef7cf8e1840df325e4390b4484879480eebe4d" resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.2.0.tgz#baef7cf8e1840df325e4390b4484879480eebe4d"
integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw== integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==