Skip to content

Commit

Permalink
save button first then load
Browse files Browse the repository at this point in the history
  • Loading branch information
nicanordlc committed Jun 18, 2024
1 parent 230482f commit 83148ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/components/Save/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ const Save = (props: SaveProps) => {
className="flex items-center justify-between break-all even:bg-blue-gray-50/50 [&>button]:flex [&>button]:justify-center [&>button]:p-3"
key={props.data.Name}
>
<WithTooltip content="Load" placement="top">
<Button onClick={() => props.onLoad()} variant="text">
<FaUpload size={15} />
</Button>
</WithTooltip>

<WithTooltip content="Save" placement="top">
<Button onClick={() => props.onSave()} variant="text">
<FaDownload size={15} />
</Button>
</WithTooltip>

<WithTooltip content="Load" placement="top">
<Button onClick={() => props.onLoad()} variant="text">
<FaUpload size={15} />
</Button>
</WithTooltip>

<NameInput
onSubmit={(data) => props.onSubmit(data.Name)}
name={props.data.Name}
Expand Down

0 comments on commit 83148ee

Please sign in to comment.