Skip to content

Commit

Permalink
don't fill page
Browse files Browse the repository at this point in the history
  • Loading branch information
shaankhosla committed Sep 23, 2023
1 parent 8864d7f commit 278ed13
Showing 1 changed file with 36 additions and 38 deletions.
74 changes: 36 additions & 38 deletions packages/desktop-client/src/components/schedules/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,52 +65,50 @@ export default function Schedules() {

return (
<Page title="Schedules">
<View style={{ height: '100%' }}>
<View
style={{
flexDirection: 'row',
alignItems: 'center',
padding: '0 0 15px',
}}
>
<View
style={{
flex: 1,
flexDirection: 'row',
alignItems: 'center',
padding: '0 0 15px',
justifyContent: 'flex-end',
}}
>
<View
style={{
flex: 1,
flexDirection: 'row',
justifyContent: 'flex-end',
}}
>
<Search
placeholder="Filter schedules…"
value={filter}
onChange={setFilter}
/>
</View>
<Search
placeholder="Filter schedules…"
value={filter}
onChange={setFilter}
/>
</View>
</View>

<SchedulesTable
schedules={schedules}
filter={filter}
statuses={statuses}
allowCompleted={true}
onSelect={onEdit}
onAction={onAction}
style={{ backgroundColor: theme.tableBackground }}
/>
<SchedulesTable
schedules={schedules}
filter={filter}
statuses={statuses}
allowCompleted={true}
onSelect={onEdit}
onAction={onAction}
style={{ backgroundColor: theme.tableBackground }}
/>

<View
style={{
flexDirection: 'row',
justifyContent: 'space-between',
margin: '20px 0',
flexShrink: 0,
}}
>
<Button onClick={onDiscover}>Find schedules</Button>
<Button type="primary" onClick={onAdd}>
Add new schedule
</Button>
</View>
<View
style={{
flexDirection: 'row',
justifyContent: 'space-between',
margin: '20px 0',
flexShrink: 0,
}}
>
<Button onClick={onDiscover}>Find schedules</Button>
<Button type="primary" onClick={onAdd}>
Add new schedule
</Button>
</View>
</Page>
);
Expand Down

0 comments on commit 278ed13

Please sign in to comment.