Skip to content

Commit

Permalink
fix: resolve conflict error
Browse files Browse the repository at this point in the history
  • Loading branch information
MinJaeSon committed Feb 9, 2025
1 parent abca319 commit ab5f7a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pages/Login/FindId/FindId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useCallback, useState } from 'react';
import styled from 'styled-components';
import { useNavigate } from 'react-router-dom';
import api from '@/api/api';
import CotatoPanel from '@components/CotatoPanel';
import CotatoPanel, { SizeStateEnum } from '@components/CotatoPanel';
import panelText from '@assets/find_id_panel_text.svg';
import CotatoButton from '@components/CotatoButton';
import CotatoIcon from '@components/CotatoIcon';
Expand Down Expand Up @@ -197,7 +197,7 @@ const FindId = () => {

return (
<Wrapper>
<CotatoPanel size="long" textImgSrc={panelText} />
<CotatoPanel size={SizeStateEnum.LONG} textImgSrc={panelText} />
{renderFindId()}
{renderFindIdResult()}
</Wrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ const MypageGenerationManagementAddDialog = ({
isEnabled={isValid}
buttonStyle="filled"
text="추가하기"
handleClick={handleSubmit(onSubmit)}
onClick={handleSubmit(onSubmit)}
/>
</CotatoDialogActions>
</CotatoDialog>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Session/SessionHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { toast } from 'react-toastify';
import { useNavigate, useSearchParams } from 'react-router-dom';
import { useGeneration } from '@/hooks/useGeneration';
import getDateString from '@utils/getDateString';
import { checkIsAtLeastAdmin } from '@utils/role';

//
//
Expand Down Expand Up @@ -288,7 +289,7 @@ const SessionHome = () => {
onChange={handleGenerationChange}
/>
)}
{checkIsAtLeastAdmin(user?.role) && !isTabletOrSmaller && (
{checkIsAtLeastAdmin(userData?.role) && !isTabletOrSmaller && (
<AddCircleIcon onClick={() => setIsAddModalOpen(true)} />
)}
</SettingTab>
Expand Down

0 comments on commit ab5f7a8

Please sign in to comment.