File tree Expand file tree Collapse file tree 7 files changed +31
-36
lines changed Expand file tree Collapse file tree 7 files changed +31
-36
lines changed Original file line number Diff line number Diff line change 1
1
import ExternalLink from '../ExternalLink' ;
2
2
import * as links from '../../constants/links' ;
3
3
import { VisuallyHidden , Flex } from '@aws-amplify/ui-react' ;
4
- import {
5
- IconDiscord ,
6
- IconTwitter ,
7
- IconGithub ,
8
- IconAWS
9
- } from '@/components/Icons' ;
4
+ import { IconDiscord , IconX , IconGithub , IconAWS } from '@/components/Icons' ;
10
5
import { ColorModeSwitcher } from '@/components/ColorModeSwitcher' ;
11
6
12
7
interface FooterProps {
@@ -53,19 +48,19 @@ export const Footer = ({ hasTOC = false }: FooterProps) => {
53
48
< Flex as = "ul" className = "footer__links" >
54
49
< li >
55
50
< ExternalLink
56
- href = { links . TWITTER }
51
+ href = { links . X }
57
52
className = "footer-link footer-link--social"
58
53
>
59
- < IconTwitter aria-hidden = "true" />
60
- < VisuallyHidden > Twitter </ VisuallyHidden >
54
+ < IconX />
55
+ < VisuallyHidden > X </ VisuallyHidden >
61
56
</ ExternalLink >
62
57
</ li >
63
58
< li >
64
59
< ExternalLink
65
60
href = { links . DISCORD }
66
61
className = "footer-link footer-link--social"
67
62
>
68
- < IconDiscord aria-hidden = "true" />
63
+ < IconDiscord />
69
64
< VisuallyHidden > Discord</ VisuallyHidden >
70
65
</ ExternalLink >
71
66
</ li >
@@ -74,7 +69,7 @@ export const Footer = ({ hasTOC = false }: FooterProps) => {
74
69
href = { links . GITHUB }
75
70
className = "footer-link footer-link--social"
76
71
>
77
- < IconGithub aria-hidden = "true" />
72
+ < IconGithub />
78
73
< VisuallyHidden > Github</ VisuallyHidden >
79
74
</ ExternalLink >
80
75
</ li >
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ describe('Footer', () => {
20
20
const footerLinks = await screen . getAllByRole ( 'link' ) ;
21
21
const linkUrls = {
22
22
Discord : 'https://discord.gg/amplify' ,
23
- Twitter : 'https://twitter .com/AWSAmplify' ,
23
+ X : 'https://x .com/AWSAmplify' ,
24
24
Github : 'https://github.com/aws-amplify' ,
25
25
'site terms' : 'https://aws.amazon.com/terms/' ,
26
26
'privacy policy' : 'https://aws.amazon.com/privacy/'
Load Diff Large diffs are not rendered by default.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { Icon } from '@aws-amplify/ui-react' ;
2
+
3
+ export const IconX = ( { ...rest } ) => {
4
+ return (
5
+ < Icon
6
+ aria-hidden = "true"
7
+ { ...rest }
8
+ viewBox = { {
9
+ minX : 0 ,
10
+ minY : 0 ,
11
+ width : 24 ,
12
+ height : 24
13
+ } }
14
+ >
15
+ < path
16
+ d = "M13.9761 10.1624L22.7186 0H20.6469L13.0558 8.82384L6.99289 0H0L9.16837 13.3432L0 24H2.07179L10.0881 14.6817L16.4911 24H23.4839L13.9761 10.1624ZM2.81829 1.55962H6.00044L20.6479 22.5113H17.4657L2.81829 1.55962Z"
17
+ fill = "currentColor"
18
+ />
19
+ </ Icon >
20
+ ) ;
21
+ } ;
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ export { IconStar } from './IconStar';
25
25
export { IconSystem } from './IconSystem' ;
26
26
export { IconTOC } from './IconTOC' ;
27
27
export { IconTS } from './IconTS' ;
28
- export { IconTwitter } from './IconTwitter' ;
29
28
export { IconVue } from './IconVue' ;
29
+ export { IconX } from './IconX' ;
30
30
export { IconExternalLink } from './IconExternalLink' ;
31
31
export { IconThumbsUp } from './IconThumbsUp' ;
32
32
export { IconThumbsDown } from './IconThumbsDown' ;
Original file line number Diff line number Diff line change 1
1
export const DISCORD = 'https://discord.gg/amplify' ;
2
2
export const LEARN = 'https://amplify.aws/learn' ;
3
3
export const CONTRIBUTE = 'https://docs.amplify.aws/contribute/' ;
4
- export const TWITTER = 'https://twitter .com/AWSAmplify' ;
4
+ export const X = 'https://x .com/AWSAmplify' ;
5
5
export const GITHUB = 'https://github.com/aws-amplify' ;
6
6
export const TERMS = 'https://aws.amazon.com/terms/' ;
7
7
export const PRIVACY = 'https://aws.amazon.com/privacy/' ;
You can’t perform that action at this time.
0 commit comments