Skip to content

Commit

Permalink
chore: qa bits
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwisecodes committed Nov 13, 2024
1 parent 478ddff commit 284e505
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { OakFlex, OakLink, OakSpan } from "@oaknational/oak-components";
import { OakFlex, OakSpan } from "@oaknational/oak-components";

import { OakLinkNoUnderline } from "@/components/OakLinkNoUnderline";

const ModalFooterButtons = ({
closeDialog,
Expand All @@ -17,11 +19,11 @@ const ModalFooterButtons = ({
$pb="inner-padding-m"
>
{actionButtonStates()}
<OakLink onClick={() => closeDialog()}>
<OakLinkNoUnderline onClick={() => closeDialog()} element="button">
<OakSpan $font="body-2-bold" $color="black" $textDecoration="none">
Cancel
</OakSpan>
</OakLink>
</OakLinkNoUnderline>
</OakFlex>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ const ShareChat = ({
element={Link}
href={`/aila/${chatId}/share`}
target="_blank"
iconName="external"
>
Go to share page
View share page
</OakPrimaryButton>
);
}
Expand Down
4 changes: 2 additions & 2 deletions apps/nextjs/src/components/DialogControl/DialogContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const dialogTitlesAndIcons: Record<
{ title: string; iconName: OakIconName }
> = {
"share-chat": {
title: "Share chat",
title: "Share lesson",
iconName: "share",
},
feedback: {
Expand Down Expand Up @@ -67,7 +67,7 @@ const DialogContents = ({
<OakModalCenterBody
title={dialogTitlesAndIcons[dialogWindow].title}
iconName={dialogTitlesAndIcons[dialogWindow].iconName}
hideIcon={dialogWindow === "feedback"}
hideIcon={dialogWindow === "feedback" || dialogWindow === "share-chat"}
>
{children}
{dialogWindow === "share-chat" && chatId && (
Expand Down
6 changes: 6 additions & 0 deletions apps/nextjs/src/components/OakLinkNoUnderline.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { OakLink } from "@oaknational/oak-components";
import styled from "styled-components";

export const OakLinkNoUnderline = styled(OakLink)`
text-decoration: none;
`;

0 comments on commit 284e505

Please sign in to comment.