refactor: use inline elements

This commit is contained in:
Carlos Valente
2025-01-24 16:12:08 +01:00
committed by Carlos Valente
parent a1d34c8f6c
commit a12694b186
26 changed files with 56 additions and 158 deletions
@@ -11,8 +11,6 @@ import * as Panel from '../../panel-utils/PanelUtils';
import ProjectCreateForm from './ProjectCreateForm';
import ProjectList from './ProjectList';
import style from './ProjectPanel.module.scss';
export default function ManageProjects() {
const [searchParams, setSearchParams] = useSearchParams();
const [error, setError] = useState('');
@@ -70,7 +68,7 @@ export default function ManageProjects() {
<Panel.Card>
<Panel.SubHeader>
Manage projects
<div className={style.headerButtons}>
<Panel.InlineElements>
<Button
variant='ontime-subtle'
onClick={handleSelectFile}
@@ -89,7 +87,7 @@ export default function ManageProjects() {
>
New
</Button>
</div>
</Panel.InlineElements>
</Panel.SubHeader>
{error && <Panel.Error>{error}</Panel.Error>}
<Panel.Divider />