Skip to content

Commit

Permalink
Merge pull request #100 from TEAM-Hearus/develop
Browse files Browse the repository at this point in the history
fix: λ§μ€„μž„ν‘œμ‹œ μΆ”κ°€, useValidation 이동
  • Loading branch information
koeunbeee authored Oct 22, 2024
2 parents 8cb39a7 + 6d99d27 commit 9703b3a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/molecules/ScriptItem/ScriptItem.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
height: 200px;
padding: 3px 10px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
line-clamp: 9;
-webkit-line-clamp: 9;
Expand Down
6 changes: 5 additions & 1 deletion src/components/molecules/ScriptItem/ScriptItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ interface IScriptProps {
lectureDate: string;
}
const ScriptItem = ({ name, processedScript, lectureDate }: IScriptProps) => {
const text =
processedScript[0].length > 99
? processedScript[0] + '...'
: processedScript[0];
return (
<article className={styles.postItContainer}>
<p className={styles.title}>{name}</p>
<div className={styles.content}>
<HighlightedText text={processedScript[0] + '...'} isPreview />
<HighlightedText text={text} isPreview />
</div>
<p className={styles.date}>{formatScriptDate(lectureDate)}</p>
</article>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/Auth/AuthForm/AuthForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link, useNavigate } from 'react-router-dom';
import { useMutation } from '@tanstack/react-query';
import { API_URL } from '../../../apis';
import { useAlertStore } from '../../../store/useAlertStore';
import useValidation from '../../../components/atoms/useValidation/useValidation';
import useValidation from '../../../hooks/useValidation';
import InputField from '../../../components/atoms/inputs/AuthInput/AuthInputField';
import AlertComponent from '../../../components/molecules/GlobalAlert/GlobalAlert';
import Google from '../../../assets/images/logo/google.png';
Expand Down

0 comments on commit 9703b3a

Please sign in to comment.