Skip to content

Commit 289f3b3

Browse files
committed
chore: npx nx format:write
1 parent b68d547 commit 289f3b3

File tree

2 files changed

+12
-27
lines changed

2 files changed

+12
-27
lines changed

libs/core-components/src/lib/Button/Button.tsx

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ const Button = (props: ButtonProps) => {
138138

139139
return (
140140
<button
141-
{...(rest as Omit<
142-
React.ButtonHTMLAttributes<HTMLButtonElement>,
143-
'type'
144-
>)}
141+
{...(rest as Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'>)}
145142
className={rootClassName}
146143
disabled={disabled || isLoading}
147144
type={attr}
@@ -171,28 +168,28 @@ type ButtonAsButtonProps = SharedProps & {
171168
attr?: 'button' | 'submit' | 'reset';
172169
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
173170
} & Omit<
174-
React.ButtonHTMLAttributes<HTMLButtonElement>,
175-
'type' | 'disabled' | 'onClick'
176-
>;
171+
React.ButtonHTMLAttributes<HTMLButtonElement>,
172+
'type' | 'disabled' | 'onClick'
173+
>;
177174

178175
type ButtonAsAnchorProps = SharedProps & {
179176
as: 'a';
180177
href: string;
181178
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
182179
} & Omit<
183-
React.AnchorHTMLAttributes<HTMLAnchorElement>,
184-
'type' | 'className' | 'children' | 'disabled' | 'onClick' | 'href'
185-
>;
180+
React.AnchorHTMLAttributes<HTMLAnchorElement>,
181+
'type' | 'className' | 'children' | 'disabled' | 'onClick' | 'href'
182+
>;
186183

187184
type RouterLinkProps = React.ComponentPropsWithoutRef<typeof Link>;
188185

189186
type ButtonAsRouterLinkProps = SharedProps & {
190187
as: typeof Link;
191188
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
192189
} & Omit<
193-
RouterLinkProps,
194-
'className' | 'children' | 'disabled' | 'onClick' | 'type'
195-
>;
190+
RouterLinkProps,
191+
'className' | 'children' | 'disabled' | 'onClick' | 'type'
192+
>;
196193

197194
export type ButtonProps =
198195
| ButtonAsButtonProps

libs/tup-components/src/projects/details/ProjectDetails.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,7 @@ const NewAllocation: React.FC<{ chargeCode: string }> = ({ chargeCode }) => {
7171
? 'https://allocations.access-ci.org/requests'
7272
: 'https://submit-tacc.xras.org/';
7373
return (
74-
<Button
75-
as="a"
76-
href={href}
77-
target="_blank"
78-
rel="noreferrer"
79-
type="link"
80-
>
74+
<Button as="a" href={href} target="_blank" rel="noreferrer" type="link">
8175
+ Add New Allocation
8276
</Button>
8377
);
@@ -101,13 +95,7 @@ const AbstractGrants: React.FC<{ chargeCode: string }> = ({ chargeCode }) => {
10195
? 'https://allocations.access-ci.org/requests'
10296
: 'https://submit-tacc.xras.org/';
10397
return (
104-
<Button
105-
as="a"
106-
href={href}
107-
target="_blank"
108-
rel="noreferrer"
109-
type="link"
110-
>
98+
<Button as="a" href={href} target="_blank" rel="noreferrer" type="link">
11199
Edit Project
112100
</Button>
113101
);

0 commit comments

Comments
 (0)