Skip to content

Commit

Permalink
Merge pull request #243 from ssu-student-union/feat/#148_jongse_qa_3
Browse files Browse the repository at this point in the history
Feat/#148 jongse qa 3
  • Loading branch information
jongse7 authored Oct 16, 2024
2 parents 5ded954 + 5c3c19a commit 55439b7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useState } from 'react';
import useTruncateText from '@/hooks/useTruncateText';
import { FilterDropDown } from '@/components/FilterDropDown/FilterDropDown';

interface AuditEditTitleSectionProps {
Expand All @@ -20,8 +19,6 @@ export function AuditEditTitleSection({
const [title, setTitle] = useState<string>(initialTitle);
const [category, setCategory] = useState<string>(initialCategory);

const truncatedTitle = useTruncateText(title, 50);

const handleTitleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const newTitle = event.target.value;
if (newTitle.length <= 50) {
Expand All @@ -41,7 +38,7 @@ export function AuditEditTitleSection({
<input
type="text"
id="title"
value={truncatedTitle}
value={title}
onChange={handleTitleChange}
className="w-full flex-1 rounded-xs border-[0.125rem] border-gray-300 px-3 py-[0.4rem] shadow-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 sm:text-sm"
placeholder="제목을 입력하세요"
Expand Down

0 comments on commit 55439b7

Please sign in to comment.