Skip to content

Commit d3aa136

Browse files
committed
rename
1 parent fd878e7 commit d3aa136

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

frontend/src/ts/components/common/Button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { JSXElement, Show } from "solid-js";
22

33
import { Conditional } from "./Conditional";
4-
import { Fa, FaUniversalProps } from "./Fa";
4+
import { Fa, FaProps } from "./Fa";
55

66
type BaseProps = {
77
text?: string;
8-
fa?: FaUniversalProps;
8+
fa?: FaProps;
99
class?: string;
1010
type?: "text" | "button";
1111
children?: JSXElement;
@@ -29,7 +29,7 @@ export function Button(props: ButtonProps | AnchorProps): JSXElement {
2929
const content = (
3030
<>
3131
<Show when={props.fa !== undefined}>
32-
<Fa {...(props.fa as FaUniversalProps)} />
32+
<Fa {...(props.fa as FaProps)} />
3333
</Show>
3434
<Show when={props.text !== undefined}>{props.text}</Show>
3535
{props.children}

frontend/src/ts/components/common/Fa.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { JSXElement } from "solid-js";
22

33
import { FaObject } from "../../types/font-awesome";
44

5-
export type FaUniversalProps = {
5+
export type FaProps = {
66
fixedWidth?: boolean;
77
spin?: boolean;
88
size?: number;
99
} & FaObject;
1010

11-
export function Fa(props: FaUniversalProps): JSXElement {
11+
export function Fa(props: FaProps): JSXElement {
1212
const variant = (): string => props.variant ?? "solid";
1313
return (
1414
<i

frontend/src/ts/components/pages/AboutPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { getNumberWithMagnitude, numberWithSpaces } from "../../utils/numbers";
1010
import AsyncContent from "../common/AsyncContent";
1111
import { Button } from "../common/Button";
1212
import { ChartJs } from "../common/ChartJs";
13-
import { Fa, FaUniversalProps } from "../common/Fa";
13+
import { Fa, FaProps } from "../common/Fa";
1414

15-
function H2(props: { text: string; fa: FaUniversalProps }): JSXElement {
15+
function H2(props: { text: string; fa: FaProps }): JSXElement {
1616
return (
1717
<h2 class="text-sub flex place-items-center gap-4 pb-4 text-4xl">
1818
<Fa {...props.fa} />
@@ -21,7 +21,7 @@ function H2(props: { text: string; fa: FaUniversalProps }): JSXElement {
2121
);
2222
}
2323

24-
function H3(props: { text: string; fa: FaUniversalProps }): JSXElement {
24+
function H3(props: { text: string; fa: FaProps }): JSXElement {
2525
return (
2626
<h3 class="text-sub flex place-items-center gap-2 pb-2">
2727
<Fa {...props.fa} />

0 commit comments

Comments
 (0)