From a5372f226b1969e10c91dea22d882fd73533ae1a Mon Sep 17 00:00:00 2001 From: Ivana Andersson Date: Mon, 21 Aug 2023 16:47:54 +0300 Subject: [PATCH] feat: create `Header` component and add it to pages --- src/components/General/Header.tsx | 14 ++++++++++++++ .../CreateLocalNodePage/CreateLocalNodePage.tsx | 8 ++------ src/pages/PairDevice/PairDevice.tsx | 14 +++----------- 3 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 src/components/General/Header.tsx diff --git a/src/components/General/Header.tsx b/src/components/General/Header.tsx new file mode 100644 index 00000000..ede00809 --- /dev/null +++ b/src/components/General/Header.tsx @@ -0,0 +1,14 @@ +import { XStack } from 'tamagui' +import NimbusLogo from '../Logos/NimbusLogo' +import TagContainer from './TagContainer' + +const Header = () => { + return ( + + + + + ) +} + +export default Header diff --git a/src/pages/CreateLocalNodePage/CreateLocalNodePage.tsx b/src/pages/CreateLocalNodePage/CreateLocalNodePage.tsx index d0a8596d..cd9252f2 100644 --- a/src/pages/CreateLocalNodePage/CreateLocalNodePage.tsx +++ b/src/pages/CreateLocalNodePage/CreateLocalNodePage.tsx @@ -2,13 +2,12 @@ import { useState } from 'react' import { Button as StatusButton, Text, Avatar, Checkbox } from '@status-im/components' import { Label, Separator, XStack, YStack } from 'tamagui' import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow' -import NimbusLogo from '../../components/Logos/NimbusLogo' -import TagContainer from '../../components/General/TagContainer' import Titles from '../../components/General/Titles' import NodeIcon from '../../components/Icons/NodeIcon' import LabelInputField from '../../components/General/LabelInputField' import ReactionIcon from '../../components/Icons/ReactionIcon' import ColorPicker from '../../components/General/ColorPicker' +import Header from '../../components/General/Header' const CreateLocalNodePage = () => { const [autoConnectChecked, setAutoConnectChecked] = useState(false) @@ -16,10 +15,7 @@ const CreateLocalNodePage = () => { return (
- - - - +
{ const [autoChecked, setAutoChecked] = useState(false) @@ -31,13 +29,7 @@ const PairDevice = () => { maxWidth: '100%', }} > - - - - - - - +
{isPaired ? : } {!isPaired && (