Skip to content

Commit ee0fa27

Browse files
committed
fix build issues
1 parent 5460d69 commit ee0fa27

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

src/components/EndToEndSupportTable.js

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
import React, { useState, useMemo } from 'react';
22
import supportData from '../pages/endToEndSupport.json';
33
import styles from './EndToEndSupportTable.module.css';
4+
5+
// FontAwesome setup
6+
import { config, library } from '@fortawesome/fontawesome-svg-core';
47
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
8+
import { faApple, faMicrosoft, faAndroid, faUbuntu, faChrome, faSafari, faEdge } from '@fortawesome/free-brands-svg-icons';
9+
import '@fortawesome/fontawesome-svg-core/styles.css';
10+
11+
// Prevent FontAwesome from adding CSS automatically since it's being imported above
12+
config.autoAddCss = false;
13+
14+
// Add icons to the library so they can be used globally
15+
library.add(faApple, faMicrosoft, faAndroid, faUbuntu, faChrome, faSafari, faEdge);
16+
517

618
const statusClass = (status) => {
719
switch (status) {
@@ -18,13 +30,13 @@ const getOsIconProps = (os) => {
1830
switch (os) {
1931
case 'macOS':
2032
case 'iOS':
21-
return ['fab', 'apple'];
33+
return faApple;
2234
case 'Windows':
23-
return ['fab', 'microsoft'];
35+
return faMicrosoft;
2436
case 'Android':
25-
return ['fab', 'android'];
37+
return faAndroid;
2638
case 'Ubuntu':
27-
return ['fab', 'ubuntu'];
39+
return faUbuntu;
2840
default:
2941
return null;
3042
}
@@ -33,11 +45,11 @@ const getOsIconProps = (os) => {
3345
const getBrowserIconProps = (browser) => {
3446
switch (browser) {
3547
case 'Chrome':
36-
return ['fab', 'chrome'];
48+
return faChrome;
3749
case 'Safari':
38-
return ['fab', 'safari'];
50+
return faSafari;
3951
case 'Edge':
40-
return ['fab', 'edge'];
52+
return faEdge;
4153
default:
4254
return null;
4355
}
@@ -106,7 +118,7 @@ export default function EndToEndSupportTable() {
106118
{abbreviationItems.length > 0 && (
107119
<div className="card margin-bottom--lg">
108120
<div className="card__header">
109-
<h4>Table Legend</h4>
121+
<h3>Legend</h3>
110122
</div>
111123
<div className="card__body">
112124
<div className={styles.legend}>

src/pages/endToEndSupport.js

Whitespace-only changes.

0 commit comments

Comments
 (0)