Skip to content

Commit

Permalink
Saga: Fix 2 broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoSilvaGrafana committed Mar 28, 2024
2 parents b822bef + 4141b3b commit 9a89785
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/06-patterns/alert.mdx
Expand Up @@ -72,7 +72,7 @@ An Alert can contain a single action, dismiss or close actions are optional.

## Related

- **[Banner Notification](/components/alert-banner)**
- **[Alert Components](/components/alert/)**

### Further Reading & Sources

Expand Down
4 changes: 1 addition & 3 deletions src/components/templates/MultistepFormPage/utils/steps.ts
Expand Up @@ -6,8 +6,6 @@
import { StepKey } from '@site/src/components/templates/MultistepFormPage/types';
import { formSteps } from '@site/src/components/templates/MultistepFormPage/DataProvider';

const BASE_URL = 'multistep-form-page';

export const getNextStep = (step: StepKey) => {
const index = formSteps.findIndex((s) => s.id === step);
return formSteps[index + 1]?.id;
Expand Down Expand Up @@ -41,7 +39,7 @@ export const isFirstStep = (step: StepKey) => {
};

export const getStepUrl = (step: StepKey) => {
return `${BASE_URL}#${step}`;
return `#${step}`;
};

export const getActiveStep = () => {
Expand Down

0 comments on commit 9a89785

Please sign in to comment.