-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/8.0.4'
- Loading branch information
Showing
30 changed files
with
304 additions
and
166 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,28 +1,19 @@ | ||
import { DashboardIcon, Tooltip } from "@terra-money/station-ui" | ||
import { useTranslation } from "react-i18next" | ||
import { ForwardedRef, forwardRef } from "react" | ||
import { DashboardIcon } from "@terra-money/station-ui" | ||
import HeaderIconButton from "app/components/HeaderIconButton" | ||
import { STATION } from "config/constants" | ||
|
||
const DashboardButton = () => { | ||
const openDashboard = () => window.open(STATION, "_blank") | ||
const { t } = useTranslation() | ||
|
||
return ( | ||
<Tooltip | ||
content={t("Dashboard")} | ||
children={ | ||
const DashboardButton = forwardRef( | ||
(_, ref: ForwardedRef<HTMLButtonElement>) => { | ||
const openDashboard = () => window.open(STATION, "_blank") | ||
return ( | ||
<HeaderIconButton onClick={openDashboard} ref={ref}> | ||
<DashboardIcon | ||
width={18} | ||
height={18} | ||
onClick={openDashboard} | ||
style={{ | ||
cursor: "pointer", | ||
//margin: "24px 12px 16px 16px", | ||
}} | ||
fill={"var(--token-dark-900)"} | ||
style={{ height: 18, width: 18, fill: "var(--token-dark-900)" }} | ||
/> | ||
} | ||
/> | ||
) | ||
} | ||
</HeaderIconButton> | ||
) | ||
} | ||
) | ||
|
||
export default DashboardButton |
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
} | ||
|
||
.form { | ||
height: 100%; | ||
height: 80%; | ||
} | ||
|
||
.form__container { | ||
|
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
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
Oops, something went wrong.