Improve update alert on mobile devices.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Alert, Button, Space } from "antd";
|
import { Alert, Button, Col, Row, Space } from "antd";
|
||||||
import i18n from "i18next";
|
import i18n from "i18next";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
@@ -28,11 +28,13 @@ export function UpdateAlert({ updateAvailable }) {
|
|||||||
message={t("general.messages.newversiontitle")}
|
message={t("general.messages.newversiontitle")}
|
||||||
showIcon
|
showIcon
|
||||||
icon={<AlertOutlined />}
|
icon={<AlertOutlined />}
|
||||||
description={t("general.messages.newversionmessage")}
|
description={
|
||||||
closable={false}
|
<Row gutter={[16, 16]}>
|
||||||
type="warning"
|
<Col sm={24} md={16} lg={18}>
|
||||||
action={
|
{t("general.messages.newversionmessage")}
|
||||||
<Space flex>
|
</Col>
|
||||||
|
<Col sm={24} md={8} lg={6}>
|
||||||
|
<Space wrap>
|
||||||
<Button
|
<Button
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
window.open("https://imex-online.noticeable.news/", "_blank");
|
window.open("https://imex-online.noticeable.news/", "_blank");
|
||||||
@@ -58,7 +60,11 @@ export function UpdateAlert({ updateAvailable }) {
|
|||||||
{i18n.t("general.actions.refresh")}
|
{i18n.t("general.actions.refresh")}
|
||||||
</Button>
|
</Button>
|
||||||
</Space>
|
</Space>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
}
|
}
|
||||||
|
closable={false}
|
||||||
|
type="warning"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user