Creds sending done

This commit is contained in:
Fergal Moran
2022-04-11 23:03:11 +01:00
parent 81991a22b6
commit 195b48082c
22 changed files with 559 additions and 194 deletions

View File

@@ -65,12 +65,12 @@ const Button = React.forwardRef<Ref, ButtonProps>(function Button(props, ref) {
return !!icon || !!iconLeft || !!iconRight;
}
console.warn(
hasIcon() && !other["aria-label"] && !children,
"Button",
'You are using an icon button, but no "aria-label" attribute was found. Add an "aria-label" attribute to work as a label for screen readers.'
);
if (hasIcon() && !other["aria-label"] && !children) {
console.warn(
"Button",
'You are using an icon button, but no "aria-label" attribute was found. Add an "aria-label" attribute to work as a label for screen readers.'
);
}
const IconLeft = iconLeft || icon;
const IconRight = iconRight;