Skip to content

Commit 632a3a4

Browse files
linting
1 parent d542ef6 commit 632a3a4

7 files changed

Lines changed: 75 additions & 42 deletions

File tree

packages/component-header-footer/src/header/components/Button/index.styles.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import {
55
ASU_WHITE,
66
GRAY_BUTTON_DISABLED,
77
ASU_GOLD,
8-
ASU_MAROON
8+
ASU_MAROON,
99
} from "../../colors";
1010

1111
const ButtonWrapper = styled.a`
12-
font-family: Arial, Helvetica, "Nimbus Sans L", "Liberation Sans", FreeSans,
13-
sans-serif;
12+
font-family:
13+
Arial, Helvetica, "Nimbus Sans L", "Liberation Sans", FreeSans, sans-serif;
1414
color: ${ASU_GRAY1};
1515
padding: 0.5rem 1rem;
1616
border-radius: 400rem;

packages/component-header-footer/src/header/components/HeaderMain/NavbarContainer/Buttons.test.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,19 @@ const stateWithButtons = {
6464
},
6565
],
6666
buttons: [
67-
{ text: "Login", href: "/login", "data-testid": "header-button" },
68-
{ text: "Sign Up", onClick: jest.fn(), as: "button", "data-testid": "header-button" },
69-
{ text: "Contact", onClick: jest.fn(), href: "#", "data-testid": "header-button" },
67+
{ "text": "Login", "href": "/login", "data-testid": "header-button" },
68+
{
69+
"text": "Sign Up",
70+
"onClick": jest.fn(),
71+
"as": "button",
72+
"data-testid": "header-button",
73+
},
74+
{
75+
"text": "Contact",
76+
"onClick": jest.fn(),
77+
"href": "#",
78+
"data-testid": "header-button",
79+
},
7080
],
7181
breakpoint: "lg",
7282
};

packages/component-header-footer/src/header/components/UniversalNavbar/Search/SearchInput.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ const SearchInput = ({
2222
isMobile,
2323
style = {},
2424
className = "",
25-
onBlur
25+
onBlur,
2626
}) => {
2727
/**
2828
* @param {React.ChangeEvent<HTMLInputElement>} e
2929
*/
30-
const handleInputChange = (e) => {
30+
const handleInputChange = e => {
3131
const value = e.target.value;
3232
setHasInputValue(value.length > 0);
3333
};
@@ -43,14 +43,16 @@ const SearchInput = ({
4343
onBlur: onBlur,
4444
style: {
4545
paddingLeft: hasInputValue && isMobile ? "1rem" : undefined,
46-
...style
47-
}
46+
...style,
47+
},
4848
};
4949

5050
if (isMobile) {
5151
return (
5252
<>
53-
{!hasInputValue && <FontAwesomeIcon className="search-icon" icon={faSearch} />}
53+
{!hasInputValue && (
54+
<FontAwesomeIcon className="search-icon" icon={faSearch} />
55+
)}
5456
<input {...baseInputProps} />
5557
{hasInputValue && (
5658
<button

packages/shared/assets/img/named/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import * as intro01 from "./intro01.jpg";
2020
import * as poly1 from "./poly01.jpg";
2121
import * as requestFormInformation from "./request-form-information.jpeg";
2222
import * as ws2DefaultImagev01Final from "./WS2-DefaultImagev01-Final.png";
23-
import * as moreGradsMoreInnovation from "./more-grads-more-innovation.png"
23+
import * as moreGradsMoreInnovation from "./more-grads-more-innovation.png";
2424

2525
export const imageName = {
2626
anon: anon.default,

packages/unity-react-core/src/components/Button/Button.stories.jsx

Lines changed: 43 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -281,45 +281,65 @@ export const AllVariants = () => (
281281
<div className="container-fluid">
282282
<div className="col col-sm-12 p-3">
283283
<h3>UDS Button Variants</h3>
284+
<Button
285+
label="Borderless"
286+
variant="borderless"
287+
color="gold"
288+
onClick={handleClick}
289+
/>
290+
<Button
291+
label="Outline"
292+
variant="outline"
293+
color="gold"
294+
onClick={handleClick}
295+
/>
296+
<Button
297+
label="Filled sm"
298+
variant="filled"
299+
color="gold"
300+
onClick={handleClick}
301+
size="small"
302+
/>
303+
<Button
304+
label="Filled md"
305+
variant="filled"
306+
color="gold"
307+
onClick={handleClick}
308+
size="medium"
309+
/>
310+
<Button
311+
label="Filled lg/default"
312+
variant="filled"
313+
color="gold"
314+
onClick={handleClick}
315+
size="large"
316+
/>
317+
<h3>All Colors</h3>
318+
<div style={{ display: "flex", gap: "1rem", flexWrap: "wrap" }}>
284319
<Button
285-
label="Borderless"
286-
variant="borderless"
287-
color="gold"
288-
onClick={handleClick}
289-
/>
290-
<Button
291-
label="Outline"
292-
variant="outline"
320+
label="Gold"
321+
variant="filled"
293322
color="gold"
294323
onClick={handleClick}
295324
/>
296325
<Button
297-
label="Filled sm"
326+
label="Maroon"
298327
variant="filled"
299-
color="gold"
328+
color="maroon"
300329
onClick={handleClick}
301-
size="small"
302330
/>
303331
<Button
304-
label="Filled md"
332+
label="Gray"
305333
variant="filled"
306-
color="gold"
334+
color="gray"
307335
onClick={handleClick}
308-
size="medium"
309336
/>
310337
<Button
311-
label="Filled lg/default"
338+
label="Dark"
312339
variant="filled"
313-
color="gold"
340+
color="dark"
314341
onClick={handleClick}
315-
size="large"
316342
/>
317-
<h3>All Colors</h3>
318-
<div style={{ display: "flex", gap: "1rem", flexWrap: "wrap" }}>
319-
<Button label="Gold" variant="filled" color="gold" onClick={handleClick} />
320-
<Button label="Maroon" variant="filled" color="maroon" onClick={handleClick} />
321-
<Button label="Gray" variant="filled" color="gray" onClick={handleClick} />
322-
<Button label="Dark" variant="filled" color="dark" onClick={handleClick} />
323343
</div>
324344
</div>
325345
</div>
@@ -332,4 +352,3 @@ AllVariants.parameters = {
332352
},
333353
controls: { disable: true },
334354
};
335-

packages/unity-react-core/src/components/CardArrangement/CardArrangement.stories.jsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { CardArrangement } from "./CardArrangement";
55

66
const img1 = imageAny();
77

8-
98
export default {
109
title: "Components/Card Arrangement",
1110
component: CardArrangement,
@@ -198,25 +197,28 @@ const imageCards = [
198197
src: img1,
199198
alt: "Image card 1",
200199
captionTitle: "Image Card One",
201-
caption: "This is the body content for the first image card with dropshadow and with cardLink prop provided. Card acts as anchor/link",
200+
caption:
201+
"This is the body content for the first image card with dropshadow and with cardLink prop provided. Card acts as anchor/link",
202202
border: true,
203203
dropShadow: true,
204204
cardLink: "https://example.com",
205-
title: "example"
205+
title: "example",
206206
},
207207
{
208208
type: "image",
209209
src: img1,
210210
alt: "Image card 2",
211211
captionTitle: "Image Card Two",
212-
caption: "This is the body content for the second image card with no border",
212+
caption:
213+
"This is the body content for the second image card with no border",
213214
},
214215
{
215216
type: "image",
216217
src: img1,
217218
alt: "Image card 3",
218219
captionTitle: "Image Card Three",
219-
caption: "This is the body content for the third image card with no drop shadow.",
220+
caption:
221+
"This is the body content for the third image card with no drop shadow.",
220222
border: true,
221223
dropShadow: false,
222224
},

packages/unity-react-core/src/components/ContentSpotlight/ContentSpotlight.stories.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22
import React from "react";
33
import { ContentSpotlight } from "./ContentSpotlight";
4-
import {imageName} from "@asu/shared";
4+
import { imageName } from "@asu/shared";
55

66
export default {
77
title: "Components/ContentSpotlight",

0 commit comments

Comments
 (0)