1- import { OutboundLink } from 'gatsby-plugin-google-analytics' ;
1+ // import { OutboundLink } from 'gatsby-plugin-google-analytics';
22import React from 'react' ;
33import LightDarkSwitcher from '../LightDarkSwitcher' ;
44import Flex from '../Flex' ;
5- import styled from '../../utils/styled' ;
5+ // import styled from '../../utils/styled';
66import { useTheme } from '../../context/ThemeContext' ;
77import LogoImage from '../Logo' ;
88import { Logo } from './Logo' ;
99import { Navigation } from './Navigation' ;
1010import { Title } from './Title' ;
1111import { Wrapper } from './Wrapper' ;
1212import { LinkButton } from '../Button/LinkButton' ;
13+ import { Heading } from '@primer/components'
1314
14- const TwitterIcon = ( ) => (
15- < svg
16- xmlns = "http://www.w3.org/2000/svg"
17- width = "24"
18- height = "24"
19- viewBox = "0 0 24 24"
20- >
21- < path d = "M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z" />
22- </ svg >
23- ) ;
2415
25- const TwitterLinkWrapper = styled ( 'div' ) `
26- svg {
27- margin-top: 4px;
28- fill: ${ ( p ) => p . theme . blue } ;
29- }
30- ` ;
16+ // const TwitterIcon = () => (
17+ // <svg
18+ // xmlns="http://www.w3.org/2000/svg"
19+ // width="24"
20+ // height="24"
21+ // viewBox="0 0 24 24"
22+ // >
23+ // <path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z" />
24+ // </svg>
25+ // );
26+ 27+ // const TwitterLinkWrapper = styled('div')`
28+ // svg {
29+ // margin-top: 4px;
30+ // fill: ${(p) => p.theme.blue};
31+ // }
32+ // `;
3133
3234const noop = ( ) => { } ;
3335
@@ -75,13 +77,12 @@ const DefaultHeader: React.FC<MainHeaderProps> = (props) => {
7577 alt = "codeanit.com logo"
7678 aria-label = "codeanit.com blog"
7779 >
78- < LogoImage inverted />
80+ < LogoImage />
7981 </ Header . Logo >
80- 81- < Header . Title > { props . title } </ Header . Title >
82+ < Heading > anit</ Heading >
8283 </ Flex >
8384 < Flex >
84- < TwitterLinkWrapper >
85+ { /* <TwitterLinkWrapper>
8586 <OutboundLink
8687 className="h-card"
8788 data-testid="twitter-link"
@@ -98,7 +99,7 @@ const DefaultHeader: React.FC<MainHeaderProps> = (props) => {
9899 <TwitterIcon />
99100 </LinkButton>
100101 </OutboundLink>
101- </ TwitterLinkWrapper >
102+ </TwitterLinkWrapper> */ }
102103
103104 { props . themeSwitcher && Object . keys ( theme ) . length > 0 ? (
104105 < LinkButton
0 commit comments