Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/hide password/#215 #216

Merged
merged 2 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/atomComponents/PasswordInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function PasswordInput({ value, placeholder, passWordOnChange, page }: ValueProp
const [inputType, setInputType] = useState(true);

const changePasswordType = () => {
console.log(inputType);
setInputType((prev) => !prev);
};
return (
Expand All @@ -26,7 +27,7 @@ function PasswordInput({ value, placeholder, passWordOnChange, page }: ValueProp
value={value}
onChange={passWordOnChange}
$iserror={value.length < 4}
type={inputType ? `number` : undefined}
type={inputType ? 'password' : `number`}
inputMode="numeric"
/>
<IconContainer onClick={changePasswordType}>
Expand Down
4 changes: 3 additions & 1 deletion src/pages/selectSchedule/SelectSchedulePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ function SelectSchedulePage() {
priority: 0,
};
setScheduleList([...scheduleList, schedule]);
console.log(scheduleList);
};

const deleteDataList = (index: number) => {
Expand Down Expand Up @@ -219,7 +220,7 @@ const SelectPageWrapper = styled.div`

const PlusButton = styled.button`
margin-top: 3.2rem;
margin-bottom: 12.2rem;
margin-bottom: 16.2rem;
border-radius: 0.8rem;
background-color: ${({ theme }) => theme.colors.grey2};
width: 33.5rem;
Expand Down Expand Up @@ -270,6 +271,7 @@ const StyledBtnSection = styled.section`
justify-content: center;
background: ${({ theme }) => theme.colors.dim_gradient};

margin-top:3rem;
padding-bottom: 2.9rem;

width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/selectSchedule/components/TimeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function TimeSelect({ text, id, handleStartTime, scheduleList, preferTimes }: Pr
return (
<TimeSelectWrapper>
<TimeSelectSection $drop={isOpen} onClick={startTimeModal} ref={ref}>
{scheduleList[id - 1].startTime ? (
{scheduleList[id - 1]?.startTime ? (
<Text font="button2" color={`${theme.colors.white}`}>
{scheduleList[id - 1].startTime}
</Text>
Expand Down
Loading