-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add 'delete proposal' button to the Overview Panel, add an "export" c…
…ommon button, some layout and style changes, include hack to rerender the app on proposal deletion
- Loading branch information
1 parent
1038ccb
commit 597d6cc
Showing
5 changed files
with
178 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import {ClickButtonInterfaceProps} from "./buttonInterfaceProps.tsx"; | ||
import {ReactElement} from "react"; | ||
import {Button, Tooltip} from "@mantine/core"; | ||
import {CLOSE_DELAY, ICON_SIZE, OPEN_DELAY} from "../constants.tsx"; | ||
import {IconDownload} from "@tabler/icons-react"; | ||
|
||
export | ||
function ExportButton(props: ClickButtonInterfaceProps) : ReactElement { | ||
return ( | ||
<Tooltip position={props.toolTipLabelPosition ?? "left"} | ||
label={props.toolTipLabel} | ||
openDelay={OPEN_DELAY} | ||
closeDelay={CLOSE_DELAY} | ||
> | ||
<Button | ||
rightSection={<IconDownload size={ICON_SIZE}/>} | ||
color={"blue.7"} | ||
variant={props.variant ?? "subtle"} | ||
onClick={props.onClick === undefined? props.onClickEvent : props.onClick} | ||
disabled={props.disabled}> | ||
{props.label === undefined? 'Export' : props.label} | ||
</Button> | ||
</Tooltip> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters