Skip to content

Commit

Permalink
fix: input error text transition added
Browse files Browse the repository at this point in the history
  • Loading branch information
kaustubhxd committed May 23, 2023
1 parent 34aebd4 commit f697460
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function App () {
<MyContext.Provider value={{ starlinkData, setStarlinkData, authState, setAuthState }}>
<div className="App relative lg:overflow-hidden">
<div className='lg:h-screen flex flex-col lg:flex-row bg-transparent' style={{ backgroundImage: 'url(//unpkg.com/three-globe/example/img/night-sky.png)' }}>
{!!authState?.token && <div className='flex flex-col bg-transparent h-screen relative'>
<div className='hidden lg:flex flex-col bg-transparent h-screen relative'>
<div className='mt-[40px] flex items-center justify-center cursor-grab'>
<CustomToggle
value={globeTexture}
Expand All @@ -118,7 +118,7 @@ function App () {
>
<DownOutlined style={{ color: 'white' }} />
</div>
</div>}
</div>
{authState?.token
? <SatList
loading={dataLoading}
Expand Down
10 changes: 8 additions & 2 deletions src/components/CustomInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const CustomInput = ({

return (
<div className={className}>
<div className='poppins-400-12 mb-2 text-white'>{label}</div>
<div className='poppins-400-12 mb-1 text-white'>{label}</div>
<div className='border border-[#EBEBEB] rounded-lg py-2 text-white flex pr-4 h-10 items-center pl-2'>
<ConfigProvider
theme={{
Expand All @@ -38,7 +38,13 @@ const CustomInput = ({
{suffix}
</div>
</div>
<div className='text-[#FA7066] mt-1 h-5'>
<div
className='text-[#FA7066] mt-1 text-xs'
style={{
height: showError ? '16px' : '0px',
transition: 'all 0.2s ease-in-out'
}}
>
{showError && <div>{errorText}</div>}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/slots/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Login = () => {
/>
<CustomInput
name={'password'}
className={'pt-4'}
className={'pt-2'}
label={'Password'}
type={showPassword ? undefined : 'password'}
autoComplete={false}
Expand Down

0 comments on commit f697460

Please sign in to comment.