Skip to content

Commit

Permalink
Merge pull request #3 from kevinhermawan/fix/cancel-button
Browse files Browse the repository at this point in the history
fix: cancel buttons in the dialog are not working
  • Loading branch information
nickscamara authored May 29, 2024
2 parents 68dda88 + 363e0f4 commit 975aff5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/data-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ export default function DataInput({
onChange={(e) => setRepoUrl(e.target.value)}
/>
<div className="flex justify-end space-x-2 mt-4">
<Button variant="outline">Cancel</Button>
<Button variant="outline" onClick={() => setOpen(false)}>
Cancel
</Button>
<Button
onClick={async () => {
if (repoUrl) {
Expand Down Expand Up @@ -162,7 +164,9 @@ export default function DataInput({
// close the dialog after file is uploaded
/>
<div className="flex justify-end space-x-2 mt-4">
<Button variant="outline">Cancel</Button>
<Button variant="outline" onClick={() => setOpenCsv(false)}>
Cancel
</Button>
<Button
onClick={() => {
console.log(pastedCsvData);
Expand Down

0 comments on commit 975aff5

Please sign in to comment.