mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[MISC] Fix OTP countdown circle (#1604)
On the method selection page previously the OTP option had a circle which gradually reduced in size and eventually reset, this was a intended to be a visual indicator for a time based OTP.
This commit is contained in:
parent
d92e4b94d6
commit
57c339bb96
|
@ -12,8 +12,8 @@ import {
|
|||
} from "@material-ui/core";
|
||||
|
||||
import FingerTouchIcon from "../../../components/FingerTouchIcon";
|
||||
import PieChartIcon from "../../../components/PieChartIcon";
|
||||
import PushNotificationIcon from "../../../components/PushNotificationIcon";
|
||||
import TimerIcon from "../../../components/TimerIcon";
|
||||
import { SecondFactorMethod } from "../../../models/Methods";
|
||||
|
||||
export interface Props {
|
||||
|
@ -30,14 +30,7 @@ const MethodSelectionDialog = function (props: Props) {
|
|||
const theme = useTheme();
|
||||
|
||||
const pieChartIcon = (
|
||||
<PieChartIcon
|
||||
width={24}
|
||||
height={24}
|
||||
maxProgress={1000}
|
||||
progress={150}
|
||||
color={theme.palette.primary.main}
|
||||
backgroundColor={"white"}
|
||||
/>
|
||||
<TimerIcon width={24} height={24} period={15} color={theme.palette.primary.main} backgroundColor={"white"} />
|
||||
);
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue
Block a user