Skip to content

Commit

Permalink
Create task button
Browse files Browse the repository at this point in the history
  • Loading branch information
MIDAV0 committed Sep 1, 2023
1 parent abbc1a8 commit 1a1f4f7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/renderer/components/Tasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,12 @@ function Tasks() {
justify="between"
pad={{ top: 'large', bottom: 'medium', horizontal: 'large' }}
>
<Box direction="row-responsive" gap="large">
<Box direction="row-responsive" gap="large" align="center">
<Box direction="row" alignSelf="end" gap="xsmall">
<Text>Tasks</Text>
{tasks.length}
</Box>
<TextInput placeholder="Search" icon={<Search />} />
</Box>
<Box direction="row-responsive" align="center" gap="large">
<Button
primary={filterMode === 'all'}
plain={filterMode !== 'all'}
Expand All @@ -175,6 +173,16 @@ function Tasks() {
label="Completed"
/>
</Box>
<Box direction="row-responsive" align="center" gap="large">
<Button
disabled={!address}
primary
onClick={() => setShowCreateTask(true)}
label="Create Task"
size="medium"
pad={{ vertical: 'xsmall', horizontal: 'medium' }}
/>
</Box>
</Box>
<Box
direction="row-responsive"
Expand Down

0 comments on commit 1a1f4f7

Please sign in to comment.