Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@babel/core": "^7.16.0",
"@divviup/dap": "^0.9.0",
"@horizontal-org/shira-ui": "1.0.23",
"@horizontal-org/shira-ui": "1.0.26",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
"@popperjs/core": "^2.11.8",
"@svgr/webpack": "^5.5.0",
Expand Down
15 changes: 8 additions & 7 deletions src/components/Layouts/AboutLayout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
import { FunctionComponent, useRef } from "react";
import { styled, Button } from '@horizontal-org/shira-ui'
import { Navbar } from "../../UI/Navbar";
import { styled, Button, Navbar } from '@horizontal-org/shira-ui'
import { SceneWrapper } from "../../UI/SceneWrapper";
import { useTranslation } from "react-i18next";
import { Heading } from "../../UI/Title";
import HorizontalLogo from "../../UI/Icons/Horizontal";
import ReadIcon from './assets/ReadIcon'
import Background from './assets/backgroundabout.png'
import { useNavigate } from "react-router-dom";
import { useAppNavigation } from "../../../hooks/useAppNavigation";

interface Props {}

export const AboutLayout: FunctionComponent<Props> = () => {
const { t } = useTranslation()
let navigate = useNavigate()
const bringShiraRef = useRef(null)

const handleNavigation = useAppNavigation();
return (
<AboutSceneWrapper bg='white'>
<BackgroundWrapper>
<img src={Background} alt='background-image' />
</BackgroundWrapper>
<Navbar color="#DBE3A3"/>
<Navbar
translatedTexts={{home: t('navbar.home'), about: t('navbar.about'), menu: t('navbar.menu'), logIn: t('navbar.login'), createSpace: t('navbar.create_space')}}
onNavigate={handleNavigation}
/>
<AboutWrapper>
<Heading>{t('about.title')}</Heading>
<p>{t('about.subtitle')}</p>
Expand Down Expand Up @@ -70,7 +71,7 @@ export const AboutLayout: FunctionComponent<Props> = () => {
text={t('about.why_shira.privacy_policy_cta')}
type="primary"
leftIcon={<ReadIcon />}
onClick={() => { navigate('/privacy') }}
onClick={() => { handleNavigation('/privacy') }}
/>

<Button
Expand Down
12 changes: 7 additions & 5 deletions src/components/Layouts/PrivacyLayout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
import { FunctionComponent, useRef } from "react";
import { styled } from '@horizontal-org/shira-ui'
import { Navbar } from "../../UI/Navbar";
import { styled, Navbar } from '@horizontal-org/shira-ui'
import { SceneWrapper } from "../../UI/SceneWrapper";
import { useTranslation } from "react-i18next";
import { Heading } from "../../UI/Title";
import HorizontalLogo from "../../UI/Icons/Horizontal";

import { useAppNavigation } from "../../../hooks/useAppNavigation";
interface Props {}

export const PrivacyLayout: FunctionComponent<Props> = () => {
const { t } = useTranslation()
const bringShiraRef = useRef(null)

const handleNavigation = useAppNavigation()
return (
<AboutSceneWrapper bg='white'>

<Navbar color="#DBE3A3"/>
<Navbar
translatedTexts={{home: t('navbar.home'), about: t('navbar.about'), menu: t('navbar.menu'), logIn: t('navbar.login'), createSpace: t('navbar.create_space')}}
onNavigate={handleNavigation}
/>
<AboutWrapper>
<Heading>Privacy policy</Heading>
</AboutWrapper>
Expand Down
20 changes: 0 additions & 20 deletions src/components/UI/Navbar/components/AboutIcon/index.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/components/UI/Navbar/components/CloseIcon/index.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/components/UI/Navbar/components/HomeIcon/index.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/components/UI/Navbar/components/MenuIcon/index.tsx

This file was deleted.

113 changes: 0 additions & 113 deletions src/components/UI/Navbar/components/MobileMenu/index.tsx

This file was deleted.

Loading