0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(ui): remove unused style settings (#4464)

remove unused isSuffixVisible style settings
This commit is contained in:
simeng-li 2023-09-14 13:53:32 +08:00 committed by GitHub
parent 1863c2f817
commit 545b919074
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 14 deletions

View file

@ -56,7 +56,6 @@
}
}
&.isSuffixVisible,
&.isSuffixFocusVisible:focus-within {
input {
padding-right: _.unit(10);

View file

@ -12,21 +12,11 @@ export type Props = Omit<HTMLProps<HTMLInputElement>, 'prefix'> & {
isDanger?: boolean;
prefix?: ReactElement;
suffix?: ReactElement;
isSuffixVisible?: boolean;
isSuffixFocusVisible?: boolean;
};
const InputField = (
{
className,
errorMessage,
isDanger,
prefix,
suffix,
isSuffixFocusVisible,
isSuffixVisible,
...props
}: Props,
{ className, errorMessage, isDanger, prefix, suffix, isSuffixFocusVisible, ...props }: Props,
reference: ForwardedRef<HTMLInputElement>
) => {
const errorMessages = errorMessage?.split('\n');
@ -37,8 +27,7 @@ const InputField = (
className={classNames(
styles.inputField,
isDanger && styles.danger,
isSuffixFocusVisible && styles.isSuffixFocusVisible,
isSuffixVisible && styles.isSuffixVisible
isSuffixFocusVisible && styles.isSuffixFocusVisible
)}
>
{prefix}