Skip to content

Commit 735a07b

Browse files
authored
Merge pull request #1529 from dxc-technology/rarrojolopez-fixes-site
Fix broken links and fixes documentation
2 parents b59dcef + eb69a80 commit 735a07b

File tree

18 files changed

+51
-48
lines changed

18 files changed

+51
-48
lines changed

website/screens/components/application-layout/code/ApplicationLayoutCodePage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const sections = [
168168
},
169169
];
170170

171-
const ButtonCodePage = () => {
171+
const ApplicationLayoutCodePage = () => {
172172
return (
173173
<DxcFlex direction="column" gap="4rem">
174174
<QuickNavContainerLayout>
@@ -177,9 +177,9 @@ const ButtonCodePage = () => {
177177
startHeadingLevel={2}
178178
></QuickNavContainer>
179179
</QuickNavContainerLayout>
180-
<DocFooter githubLink="https://github.com/dxc-technology/halstack-react/blob/master/website/screens/components/button/Code/ButtonCodePage.tsx" />
180+
<DocFooter githubLink="https://github.com/dxc-technology/halstack-react/blob/master/website/screens/components/application-layout/code/ApplicationLayoutCodePage.tsx" />
181181
</DxcFlex>
182182
);
183183
};
184184

185-
export default ButtonCodePage;
185+
export default ApplicationLayoutCodePage;

website/screens/components/date-input/specs/DateInputSpecsPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ const sections = [
3030
The date input <Code>color</Code>, <Code>typography</Code>,{" "}
3131
<Code>border</Code>, <Code>spacing</Code>, <Code>width</Code> and{" "}
3232
<Code>margin</Code> specifications are inherited from the text input,
33-
for reference{" "}
33+
for reference check{" "}
3434
<Link href="/components/text-input/specifications" passHref>
35-
<DxcLink>check the text input component documentation</DxcLink>
36-
</Link>
37-
.
35+
<DxcLink>text input</DxcLink>
36+
</Link>{" "}
37+
documentation .
3838
</DxcParagraph>
3939
<DxcParagraph>
4040
The date input doesn&#39;t have the following text input elements or

website/screens/components/dropdown/specs/DropdownSpecsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const sections = [
3232
content: (
3333
<>
3434
<DxcParagraph>
35-
States: <strong>Enabled</strong>, <strong>hover</strong>,{" "}
35+
States: <strong>enabled</strong>, <strong>hover</strong>,{" "}
3636
<strong>focus</strong>, <strong>active</strong> and{" "}
3737
<strong>disabled</strong>.
3838
</DxcParagraph>

website/screens/components/flex/FlexPageLayout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ const FlexPageHeading = ({ children }: { children: React.ReactNode }) => {
1717
<ComponentHeading name="Flex" status="Ready" />
1818
<DxcParagraph>
1919
Flex allows users to build{" "}
20-
<DxcLink href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox">
20+
<DxcLink
21+
newWindow
22+
href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox"
23+
>
2124
Flexible Box Module
2225
</DxcLink>{" "}
2326
based layouts. It serves as a technical component that abstracts

website/screens/components/heading/usage/HeadingUsagePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const sections = [
1616
content: (
1717
<>
1818
<DxcParagraph>
19-
Navigating through the <Code>Headings-H1</Code> and
19+
Navigating through the <Code>Headings-H1</Code> and{" "}
2020
<Code>Headings-H3</Code> give a user an overview of a page and how its
21-
content is structured. The <Code>Headings-H4</Code> and
21+
content is structured. The <Code>Headings-H4</Code> and{" "}
2222
<Code>Headings-H5</Code> elements provide a quick understanding of the
2323
details in each section.
2424
</DxcParagraph>

website/screens/components/link/code/LinkCodePage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ const sections = [
122122
<DxcParagraph>
123123
So we decided to make our link component just an styled HTML
124124
anchor element which allows it to be used in any React based
125-
router. For each API is different so here are some examples for{" "}
125+
router. For each API is different, so here are some examples for{" "}
126126
<DxcLink
127-
href="https://reactrouter.com/docs/en/v6/hooks/use-href"
127+
href="https://reactrouter.com/en/main/hooks/use-href"
128128
newWindow
129129
>
130130
React Router
@@ -155,7 +155,7 @@ const sections = [
155155
>
156156
React Router
157157
</DxcLink>{" "}
158-
using the prop <Code>component</Code>. Note that this Prop is
158+
using the prop <Code>component</Code>. Note that this prop is
159159
not available in v6.
160160
</DxcParagraph>
161161
<Example example={routerLink} defaultIsVisible />
@@ -177,7 +177,7 @@ const sections = [
177177
the prop <Code>component</Code> is no longer available so it
178178
is necessary to use hooks provided by{" "}
179179
<DxcLink
180-
href="https://reactrouter.com/docs/en/v6/hooks/use-href"
180+
href="https://reactrouter.com/en/main/hooks/use-href"
181181
newWindow
182182
>
183183
React Router v6

website/screens/components/nav-tabs/code/NavTabsCodePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ const sections = [
190190
the prop <Code>component</Code> is no longer available so it
191191
is necessary to use hooks provided by{" "}
192192
<DxcLink
193-
href="https://reactrouter.com/en/6.8.1/hooks/use-href"
193+
href="https://reactrouter.com/en/main/hooks/use-href"
194194
newWindow
195195
>
196196
React Router v6

website/screens/components/number-input/specs/NumberInputSpecsPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ const sections = [
3131
The number input <Code>color</Code>, <Code>typography</Code>,{" "}
3232
<Code>border</Code>, <Code>spacing</Code>, <Code>width</Code> and{" "}
3333
<Code>margin</Code> specifications are inherited from the text input,
34-
for reference{" "}
34+
for reference check the{" "}
3535
<Link href="/components/text-input/specifications" passHref>
36-
<DxcLink>check the text input component documentation</DxcLink>
37-
</Link>
38-
.
36+
<DxcLink>text input</DxcLink>
37+
</Link>{" "}
38+
component documentation.
3939
</DxcParagraph>
4040
</>
4141
),

website/screens/components/password-input/specs/PasswordInputSpecsPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ const sections = [
3131
The password input <Code>color</Code>, <Code>typography</Code>,{" "}
3232
<Code>border</Code>, <Code>spacing</Code>, <Code>width</Code> and{" "}
3333
<Code>margin</Code> specifications are inherited from the text input,
34-
for reference{" "}
34+
for reference check the{" "}
3535
<Link href="/components/text-input/specifications" passHref>
36-
<DxcLink>check the text input component documentation</DxcLink>
37-
</Link>
38-
.
36+
<DxcLink>text input</DxcLink>
37+
</Link>{" "}
38+
component documentation.
3939
</DxcParagraph>
4040
<DxcParagraph>
4141
The password input doesn&#39;t have the following text input elements,

website/screens/components/resultset-table/usage/ResultsetTableUsagePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const ResultsetTableUsagePage = () => {
3535
startHeadingLevel={2}
3636
></QuickNavContainer>
3737
</QuickNavContainerLayout>
38-
<DocFooter githubLink="https://github.com/dxc-technology/halstack-react/blob/master/website/screens/components/accordion/usage/AccordionUsagePage.tsx" />
38+
<DocFooter githubLink="https://github.com/dxc-technology/halstack-react/blob/master/website/screens/components/resultset-table/usage/ResultsetTableUsagePage.tsx" />
3939
</DxcFlex>
4040
);
4141
};

0 commit comments

Comments
 (0)