-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add export close button and move info icon (#125)
Co-authored-by: Maximilian Rüsch <[email protected]>
- Loading branch information
1 parent
060ad94
commit 0119882
Showing
2 changed files
with
54 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { ActionIcon, Tooltip } from "@mantine/core"; | ||
import { IconInfoCircle } from "@tabler/icons-react"; | ||
|
||
export function InfoButton({ text, mb, mt }: { text: string, mb : string, mt:string }) { | ||
return ( | ||
<Tooltip | ||
withArrow | ||
multiline | ||
w={150} | ||
fz={14} | ||
fw={500} | ||
openDelay={200} | ||
closeDelay={200} | ||
ta="center" | ||
color="primaryBlue" | ||
variant="filled" | ||
label={text} | ||
> | ||
<ActionIcon variant="subtle" mb={mb} mt={mt}> | ||
<IconInfoCircle /> | ||
</ActionIcon> | ||
</Tooltip> | ||
); | ||
} |