Skip to content

Commit

Permalink
remove config file, clenup components
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass committed Aug 5, 2024
1 parent cb77b10 commit 6f866a5
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 818 deletions.
95 changes: 0 additions & 95 deletions web/src/components/WebSocket.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions web/src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import PrefilledForm from './PrefilledForm';
import Checkbox from './Checkbox';
import AccountType from './AccountType';
import RandomGraphicElement from './RandomGraphicElement';
import WebSocket from './WebSocket';

export {
Sidebar,
Expand All @@ -23,5 +22,4 @@ export {
Checkbox,
AccountType,
RandomGraphicElement,
WebSocket,
};
17 changes: 13 additions & 4 deletions web/src/components/landing/ControlIdentity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RandomGraphicElement } from '..';
import connected from '../../assets/landing/connected.svg';
import { Translation } from 'react-i18next';

export default () => (
const ControlIdentity = () => (
<Translation>
{
(t) =>
Expand All @@ -13,10 +13,17 @@ export default () => (
<div className='content-wrapper'>
<div className='text-content-wrapper' data-aos='fade-up' data-aos-duration='1000'>
<div className='heading-wrapper'>
<h2>{t("landing.controlIdentity.youControlYour")}</h2>
<h2>{t("landing.controlIdentity.ownIdentity")}</h2>
<h2>{t("landing.controlIdentity.theProblem")}</h2>
<h2>{t("landing.controlIdentity.theProblemSubline")}</h2>
</div>
<p>{t("landing.controlIdentity.whatItIsDetailed")}</p>
<p>{t("landing.controlIdentity.theProblemText")}</p>
</div>
<div className='text-content-wrapper' data-aos='fade-up' data-aos-duration='1000'>
<div className='heading-wrapper'>
<h2>{t("landing.controlIdentity.theSolution")}</h2>
<h2>{t("landing.controlIdentity.theSolutionSubline")}</h2>
</div>
<p>{t("landing.controlIdentity.theSolutionText")}</p>
</div>
<img data-aos='fade-up' data-aos-duration='1000' src={connected} alt='Connected' className='illustration' />
</div>
Expand All @@ -25,3 +32,5 @@ export default () => (
}
</Translation>
);

export default ControlIdentity;
8 changes: 0 additions & 8 deletions web/src/config.json

This file was deleted.

1 change: 0 additions & 1 deletion web/src/context/globalState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { createContext, useContext, useReducer } from 'react';
import { routes, mainSteps } from '../steps';
import SocketIOClient, { Socket } from 'socket.io-client';

import config from '../config.json';
import { Issuers } from '@shared/types/Issuers';
import { Scopes } from '@shared/types/Scopes';
import { Providers } from '@shared/types/Providers';
Expand Down
11 changes: 5 additions & 6 deletions web/src/pages/AppPicker.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useMemo, useState } from 'react';
import { generatePath, Link } from 'react-router-dom';
import { Button, Modal } from 'antd';
import { Button, Flex, Modal } from 'antd';
import { Layout, RandomGraphicElement } from '../components';
import { QRCode } from 'antd';
import useStep from '../utils/useStep';
Expand All @@ -10,7 +10,6 @@ import avatar1 from '../assets/avatar1.png';
import avatar2 from '../assets/avatar2.png';
import dots from '../assets/backgrounds/dots.png';
import circle from '../assets/backgrounds/circleFrame6.svg';
import config from '../config.json';
import { useTranslation, Trans } from 'react-i18next';
import { wallets } from '../wallets';
import { utilityRoutes } from '../steps';
Expand Down Expand Up @@ -45,10 +44,10 @@ const AppPicker: React.FC = () => {
<div className='app__column'>
{wallet.logo}
<div className='app__content'>
<span>
<Flex align='center'>
by &nbsp;
{wallet.by}
</span>
</Flex>

<Button onClick={() => setOpen(wallet.name)}>
{t("actions.continue")}
Expand All @@ -67,10 +66,10 @@ const AppPicker: React.FC = () => {
<section className='wallet-modal'>
{wallet.logo}
<div className='wallet-modal__by'>
<span>
<Flex align='center'>
by &nbsp;
{wallet.by}
</span>
</Flex>
</div>
<p>{wallet.description}</p>

Expand Down
Loading

0 comments on commit 6f866a5

Please sign in to comment.