diff --git a/src/components/layout/Stepper.tsx b/src/components/layout/Stepper.tsx index 867a438c..75dc150b 100644 --- a/src/components/layout/Stepper.tsx +++ b/src/components/layout/Stepper.tsx @@ -5,7 +5,7 @@ export interface StepperProps { } export function Stepper(props: StepperProps) { - const percentage = (props.current / (props.steps + 1)) * 100; + const percentage = (props.current / props.steps) * 100; return (
{props.label}
) : null} diff --git a/src/components/utils/ErrorLine.tsx b/src/components/utils/ErrorLine.tsx new file mode 100644 index 00000000..b0761fee --- /dev/null +++ b/src/components/utils/ErrorLine.tsx @@ -0,0 +1,18 @@ +import classNames from "classnames"; +import { ReactNode } from "react"; + +import { Icon, Icons } from "@/components/Icon"; + +export function ErrorLine(props: { children?: ReactNode; className?: string }) { + return ( +
+
waiting on extension...
; + content = ( + <> +waiting on extension
+ > + ); if (props.status === "disallowed") content =Extension disabled for this page
; else if (props.status === "failed") content =Failed to request status
; else if (props.status === "outdated") content =Extension too old
; else if (props.status === "noperms") content =No permissions to act
; else if (props.status === "success") content =Extension is working!
; - returnurl invalid
: null} - - +