mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-04 05:49:06 +00:00
refactor: use inline elements
This commit is contained in:
committed by
Carlos Valente
parent
a1d34c8f6c
commit
a12694b186
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user