Skip to content
Open
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
1 change: 0 additions & 1 deletion src/api/context/auth-util/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export const removeToken = () => {
try {
sessionStorage.removeItem('accessToken');
sessionStorage.removeItem('refreshToken');
console.log('스토리지에서 토큰 삭제 완료.');
} catch (error) {
console.error('스토리지에서 토큰 삭제 중 오류 발생:', error);
}
Expand Down
4 changes: 1 addition & 3 deletions src/api/send-code/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ interface ErrorResponse {
}

const postSendCode = async (data: RentalRequestData): Promise<void> => {
console.log('data', data);

try {
const response = await api.post('auth/send-code', data, {
headers: {
'Content-Type': 'application/json',
},
});
console.log(response);

alert(response.data.message);
} catch (error: unknown) {
if (error instanceof AxiosError && error.response) {
Expand Down
2 changes: 1 addition & 1 deletion src/api/socket/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class WebSocketClient {
this.socket = new WebSocket(uri);

this.socket.onopen = () => {
console.log('[WebSocket] Connected to', uri);

this.openHandler?.();
};

Expand Down
3 changes: 1 addition & 2 deletions src/components/dashboard/button/saveButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const SaveButton: React.FC<SaveButtonGroupProps> = ({ inputValues, onClose, curr
});
onClose();
} catch (error) {
console.error('Error posting keychain:', error);
alert(error instanceof Error ? error.message : '데이터 저장에 실패했습니다.');
}
} else if (currentPage === 'connections') {
Expand All @@ -51,7 +50,7 @@ const SaveButton: React.FC<SaveButtonGroupProps> = ({ inputValues, onClose, curr
onClose();
window.location.reload();
} catch (error) {
console.error('Error posting connection:', error);

alert(error instanceof Error ? error.message : '데이터 저장에 실패했습니다.');
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/dashboard/cards/keychain-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const KeychainCard: React.FC<CardProps> = ({ title, label, className = ' ', id,
const response = await getKeychainDecrypt(id);
setDecryptedContent(response.content);
} catch (error) {
console.error('복호화 실패:', error);

}
};

Expand All @@ -36,7 +36,7 @@ const KeychainCard: React.FC<CardProps> = ({ title, label, className = ' ', id,
setDecryptedContent(response.content);
setIsModalOpen(true);
} catch (err) {
console.error('복호화 실패', err);

}
};
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ const KeychainReadModal: React.FC<ModalProps> = ({ isOpen, onClose, fields, id,
const checked = e.target.checked;
setShowKeychain(checked);

if (!id) {
console.error('선택된 ID가 없습니다.');
return;
}
if (!id) return;

if (checked) {
if (decryptedValue || isLoading) return;
Expand Down
3 changes: 0 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ root.render(
</>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
1 change: 0 additions & 1 deletion src/pages/sign-in/content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const Content = () => {

const githubLogin = () => {
if (!GITHUB_CLIENT_ID || !GITHUB_REDIRECT_URI) {
console.error('GitHub OAuth 설정이 올바르지 않습니다. .env 파일을 확인하세요.');
return;
}
const githubAuthUrl = `https://github.com/login/oauth/authorize?client_id=${GITHUB_CLIENT_ID}&redirect_uri=${GITHUB_REDIRECT_URI}&scope=user:email`;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/sign-in/sign-in-github/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Github = () => {
const navigate = useNavigate();

const code = searchParams.get('code');
console.log('Github OAuth Code:', code);


useEffect(() => {
const fetchGithubAuth = async () => {
Expand Down
1 change: 0 additions & 1 deletion src/pages/sign-up/content/terms/content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const Content = () => {
const fetchTerms = async () => {
try {
const terms = await getTermsOfService();
console.log('약관 내용:', terms);
setTermsContent(terms);
} catch (err) {
setError('약관을 불러오는 중 오류가 발생했습니다.');
Expand Down