'+ 메뉴 추가' 버튼 위치 변경
This commit is contained in:
@@ -415,53 +415,54 @@ const AdminMenuManagement: React.FC = () => {
|
||||
<CCard className="mb-4">
|
||||
<CCardHeader>
|
||||
<strong>어드민 메뉴 관리</strong>
|
||||
<CButton
|
||||
color="primary"
|
||||
size="sm"
|
||||
className="float-end"
|
||||
onClick={handleAddClick}
|
||||
>
|
||||
<CIcon icon={cilPlus} className="me-1" />
|
||||
메뉴 추가
|
||||
</CButton>
|
||||
</CCardHeader>
|
||||
<CCardBody>
|
||||
{/* 브레드크럼 네비게이션 */}
|
||||
<nav aria-label="breadcrumb" className="mb-3">
|
||||
<ol className="breadcrumb mb-0">
|
||||
<li className={`breadcrumb-item ${breadcrumb.length === 0 ? 'active' : ''}`}>
|
||||
{breadcrumb.length === 0 ? (
|
||||
<span><CIcon icon={cilHome} className="me-1" />최상위 메뉴</span>
|
||||
) : (
|
||||
<a
|
||||
href="#"
|
||||
onClick={(e) => { e.preventDefault(); handleBreadcrumbClick(-1); }}
|
||||
style={{ textDecoration: 'none' }}
|
||||
>
|
||||
<CIcon icon={cilHome} className="me-1" />최상위 메뉴
|
||||
</a>
|
||||
)}
|
||||
</li>
|
||||
{breadcrumb.map((item, index) => (
|
||||
<li
|
||||
key={item.adminMenuSeq}
|
||||
className={`breadcrumb-item ${index === breadcrumb.length - 1 ? 'active' : ''}`}
|
||||
>
|
||||
{index === breadcrumb.length - 1 ? (
|
||||
<span>{item.menuName}</span>
|
||||
<div className="d-flex justify-content-between align-items-center mb-3">
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol className="breadcrumb mb-0">
|
||||
<li className={`breadcrumb-item ${breadcrumb.length === 0 ? 'active' : ''}`}>
|
||||
{breadcrumb.length === 0 ? (
|
||||
<span><CIcon icon={cilHome} className="me-1" />최상위 메뉴</span>
|
||||
) : (
|
||||
<a
|
||||
href="#"
|
||||
onClick={(e) => { e.preventDefault(); handleBreadcrumbClick(index); }}
|
||||
onClick={(e) => { e.preventDefault(); handleBreadcrumbClick(-1); }}
|
||||
style={{ textDecoration: 'none' }}
|
||||
>
|
||||
{item.menuName}
|
||||
<CIcon icon={cilHome} className="me-1" />최상위 메뉴
|
||||
</a>
|
||||
)}
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</nav>
|
||||
{breadcrumb.map((item, index) => (
|
||||
<li
|
||||
key={item.adminMenuSeq}
|
||||
className={`breadcrumb-item ${index === breadcrumb.length - 1 ? 'active' : ''}`}
|
||||
>
|
||||
{index === breadcrumb.length - 1 ? (
|
||||
<span>{item.menuName}</span>
|
||||
) : (
|
||||
<a
|
||||
href="#"
|
||||
onClick={(e) => { e.preventDefault(); handleBreadcrumbClick(index); }}
|
||||
style={{ textDecoration: 'none' }}
|
||||
>
|
||||
{item.menuName}
|
||||
</a>
|
||||
)}
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</nav>
|
||||
<CButton
|
||||
color="primary"
|
||||
size="sm"
|
||||
onClick={handleAddClick}
|
||||
>
|
||||
<CIcon icon={cilPlus} className="me-1" />
|
||||
메뉴 추가
|
||||
</CButton>
|
||||
</div>
|
||||
|
||||
<CTable align="middle" className="mb-0 border" hover responsive style={{ tableLayout: 'fixed', minWidth: isCompact ? '400px' : '650px' }}>
|
||||
<CTableHead className="text-nowrap">
|
||||
|
||||
Reference in New Issue
Block a user