Skip to content

Commit

Permalink
delete space
Browse files Browse the repository at this point in the history
  • Loading branch information
shaankhosla committed Sep 23, 2023
1 parent c28d627 commit b222a38
Showing 1 changed file with 32 additions and 33 deletions.
65 changes: 32 additions & 33 deletions packages/desktop-client/src/components/schedules/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,29 @@ export default function Schedules() {

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

<View
style={{
flexBasis: (ROW_HEIGHT - 1) * (Math.max(schedules.length, 1) + 1),
marginTop: 15,
}}
>
<SchedulesTable
schedules={schedules}
filter={filter}
Expand All @@ -102,20 +101,20 @@ export default function Schedules() {
onAction={onAction}
style={{ backgroundColor: theme.tableBackground }}
/>
</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
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>
</Page>
);
Expand Down

0 comments on commit b222a38

Please sign in to comment.