-
Notifications
You must be signed in to change notification settings - Fork 573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Gap and FlexBox with new spacing components #2369
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
import { PropsWithChildren } from "react" | ||
|
||
import { Gap } from "@/client/components/Gap" | ||
import { Typography } from "@/client/components/Typography" | ||
import { EMAIL, WEBSITE } from "@/client/constants" | ||
|
||
import { ContactUsContentResolver, Link } from "./styled" | ||
|
||
const Row = ({ children }: PropsWithChildren) => ( | ||
<> | ||
<Typography variant="Text sm/Regular">{children}</Typography> | ||
<Gap height="sm" /> | ||
<Typography variant="Text sm/Regular" paddingBottom="sm"> | ||
{children} | ||
</Typography> | ||
</> | ||
) | ||
|
||
export const ContactUs = () => ( | ||
<ContactUsContentResolver> | ||
<Typography variant="Text lg/Regular">Contact us</Typography> | ||
<Gap height="md" /> | ||
<Typography variant="Text lg/Regular" paddingBottom="md"> | ||
Contact us | ||
</Typography> | ||
<Row>2nd floor, 1 Lackington St, London, EC2A 1AL</Row> | ||
<Row>+44 203 725 6000</Row> | ||
<Row>530 7th Avenue, New York</Row> | ||
|
@@ -28,10 +29,10 @@ export const ContactUs = () => ( | |
onClick={() => { | ||
window.open(`mailto:${EMAIL}`) | ||
}} | ||
paddingBottom="xs" | ||
> | ||
<Typography>{EMAIL}</Typography> | ||
{EMAIL} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor point - what is the point of |
||
</Link> | ||
<Gap height="xs" /> | ||
|
||
<Link | ||
variant="Text sm/Regular underlined" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import { PropsWithChildren } from "react" | ||
|
||
import { Gap } from "@/client/components/Gap" | ||
import { Typography } from "@/client/components/Typography" | ||
import { SOCIAL_ADDRESSES, SocialPlatform } from "@/client/constants" | ||
|
||
|
@@ -17,10 +16,10 @@ const Row = ({ | |
variant="Text sm/Regular underlined" | ||
color="Component colors/Utility/Blue dark/utility-blue-dark-500" | ||
onClick={onClick} | ||
paddingBottom="md" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ^ ^ can we get some typing on the color, do you think? |
||
> | ||
{children} | ||
</Link> | ||
<Gap height="md" /> | ||
</> | ||
) | ||
export const FollowUs = () => { | ||
|
@@ -33,8 +32,9 @@ export const FollowUs = () => { | |
|
||
return ( | ||
<ContactUsContentResolver> | ||
<Typography variant="Text lg/Regular">Follow us on</Typography> | ||
<Gap height="sm" /> | ||
<Typography variant="Text lg/Regular" paddingBottom="sm"> | ||
Follow us on | ||
</Typography> | ||
<Row label="LinkedIn" onClick={onClick("LinkedIn")}> | ||
linkedin.com/company/{<br />}adaptive-consulting-ltd/ | ||
</Row> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
started off taking against this pointless-looking comment .. 😂
.. then found
AcceptedCardState
is not used, and the final itemQuantityTypography
is not part of the footer ..I used to have a mode set in VS Code where it annotated the usage count of each identifier .. got annoying, but might be useful when refactoring, like this ..?