feat: open payment portal in same window
This commit is contained in:
@@ -9,10 +9,6 @@ import LinearProgress from '@mui/material/LinearProgress';
|
|||||||
import useFormatMessage from 'hooks/useFormatMessage';
|
import useFormatMessage from 'hooks/useFormatMessage';
|
||||||
import useUsageAlert from 'hooks/useUsageAlert.ee';
|
import useUsageAlert from 'hooks/useUsageAlert.ee';
|
||||||
|
|
||||||
const LinkBehavior = React.forwardRef<any>(
|
|
||||||
(props, ref) => <a ref={ref} target="_blank" {...props} role={undefined} />,
|
|
||||||
);
|
|
||||||
|
|
||||||
export default function UsageAlert() {
|
export default function UsageAlert() {
|
||||||
const formatMessage = useFormatMessage();
|
const formatMessage = useFormatMessage();
|
||||||
const usageAlert = useUsageAlert();
|
const usageAlert = useUsageAlert();
|
||||||
@@ -38,7 +34,6 @@ export default function UsageAlert() {
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
component={LinkBehavior}
|
|
||||||
size="small"
|
size="small"
|
||||||
href={usageAlert.url}
|
href={usageAlert.url}
|
||||||
sx={{ minWidth: 100 }}
|
sx={{ minWidth: 100 }}
|
||||||
|
Reference in New Issue
Block a user