1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

move ui & assets to package directory

This commit is contained in:
checktheroads
2020-02-24 09:06:07 -07:00
parent 6af79bda39
commit 65b1787ba7
64 changed files with 4 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
import React from "react";
import { Button, Icon, Tooltip } from "@chakra-ui/core";
export default ({ requery, bg = "secondary", ...props }) => {
return (
<Tooltip hasArrow label="Reload Query" placement="top">
<Button
as="a"
size="sm"
variantColor={bg}
zIndex="1"
onClick={requery}
mx={1}
{...props}
>
<Icon size="16px" name="repeat" />
</Button>
</Tooltip>
);
};