From d245081ecf2e2e31f3239bf237472d781efba36b Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Sun, 25 Feb 2024 22:35:15 -0800 Subject: [PATCH] styling listing component --- net/web/src/session/Session.jsx | 6 +- net/web/src/session/cards/Cards.styled.js | 1 - net/web/src/session/listing/Listing.jsx | 41 +++++++------ net/web/src/session/listing/Listing.styled.js | 57 +++++++++++++------ .../listing/listingItem/ListingItem.styled.js | 5 +- .../src/session/listing/useListing.hook.js | 5 +- todo | 6 -- 7 files changed, 69 insertions(+), 52 deletions(-) diff --git a/net/web/src/session/Session.jsx b/net/web/src/session/Session.jsx index b0f2fde0..bec3b624 100644 --- a/net/web/src/session/Session.jsx +++ b/net/web/src/session/Session.jsx @@ -214,7 +214,7 @@ export function Session() { + style={{ width: '80%', position: 'absolute', overflow: 'hidden' }}> @@ -266,12 +266,12 @@ export function Session() { { state.cards && ( )} - - + { state.contact && ( )} diff --git a/net/web/src/session/cards/Cards.styled.js b/net/web/src/session/cards/Cards.styled.js index 6e45f1a2..f8e9329b 100644 --- a/net/web/src/session/cards/Cards.styled.js +++ b/net/web/src/session/cards/Cards.styled.js @@ -1,5 +1,4 @@ import styled from 'styled-components'; -import { Colors } from 'constants/Colors'; export const CardsWrapper = styled.div` height: 100%; diff --git a/net/web/src/session/listing/Listing.jsx b/net/web/src/session/listing/Listing.jsx index 96437e93..9583b299 100644 --- a/net/web/src/session/listing/Listing.jsx +++ b/net/web/src/session/listing/Listing.jsx @@ -1,6 +1,6 @@ import { Modal, Button, Input, List } from 'antd'; import { ListingWrapper } from './Listing.styled'; -import { UserOutlined, FilterOutlined, RightOutlined, CloseOutlined, DatabaseOutlined, SearchOutlined } from '@ant-design/icons'; +import { UserOutlined, FilterOutlined, CloseOutlined, DatabaseOutlined, SearchOutlined } from '@ant-design/icons'; import { useListing } from './useListing.hook'; import { ListingItem } from './listingItem/ListingItem'; @@ -16,9 +16,9 @@ export function Listing({ closeListing, openContact }) { catch(err) { console.log(err); modal.error({ - title: 'Communication Error', - content: 'Please confirm your server name.', - bodyStyle: { padding: 16 }, + title: {state.strings.operationFailed}, + content: {state.strings.tryAgain}, + bodyStyle: { borderRadius: 8, padding: 16, ...state.menuStyle }, }); } } @@ -26,44 +26,41 @@ export function Listing({ closeListing, openContact }) { return ( { modalContext } -