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