Skip to content

Commit

Permalink
add vite x2
Browse files Browse the repository at this point in the history
  • Loading branch information
parabolabam committed Oct 22, 2023
1 parent 2c09f56 commit a7982d4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 37 deletions.
13 changes: 0 additions & 13 deletions postcss.config.js

This file was deleted.

4 changes: 1 addition & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

import { Greeting } from './components/Greeting';
import { Activities } from './components/Activities';
import ThemeProvider from './components/Theme';
import { lazy, Suspense } from 'react';
import Layout from './Layout/BaseLayout';
import Loading from './components/Loader';
import './css/app.css';
Expand Down
File renamed without changes.
21 changes: 5 additions & 16 deletions src/components/Activities/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import PropTypes from 'prop-types';
import { Link } from '../Link';
import Loading from '../Loader';
import { lineateWebSiteLink, epamWebSiteLink, githubLink, twitterLInk, telegramLink } from '../../utils/constants';

import { lineateWebSiteLink, epamWebSiteLink } from '../../utils/constants';
import { Suspense, lazy } from 'react';
import './index.css';

const Heading = lazy(() => import('../Heading'));
Expand Down Expand Up @@ -38,25 +37,15 @@ export default function Activities() {
>
<Lineate />
</ActivitySection>

<ActivitySection
link={epamWebSiteLink}
linkText="Epam Team Member"
shortDescription="Occupied senior software engineer position"
>
<Epam />
</ActivitySection>

</>
);
</Suspense>
)
}

ActivitySection.propTypes = {
link: PropTypes.string.isRequired,
linkText: PropTypes.string.isRequired,
shortDescription: PropTypes.string.isRequired,
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
]),
};
5 changes: 0 additions & 5 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import ReactDOM from 'react-dom';
import './css/global-classes.css';
import './css/fonts.css';
import './css/index.css';
import App from './App';

import { library } from '@fortawesome/fontawesome-svg-core';
import {
Expand All @@ -13,15 +12,11 @@ import {
import { faSun, faMoon } from '@fortawesome/free-regular-svg-icons';
import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';

import './css/global-classes.css';
import './css/fonts.css';
import './css/index.css';
import App from './App';
import React from 'react';

library.add(fab, faInstagram, faTwitter, faGithub, faSun, faMoon, faExternalLinkAlt);

// eslint-disable-next-line no-undef
ReactDOM.render(
<React.StrictMode>
<App />
Expand Down

0 comments on commit a7982d4

Please sign in to comment.