Skip to content

Commit

Permalink
test(cypress): update react
Browse files Browse the repository at this point in the history
  • Loading branch information
clukhei committed Oct 29, 2024
1 parent 17839cb commit 06a0840
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions cypress/apps/react-app/src/components/Alert.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import SgdsAlert from "@govtechsg/sgds-web-component/react/alert";
import SgdsAlertHeading from "@govtechsg/sgds-web-component/react/alert-heading";
import SgdsAlertLink from "@govtechsg/sgds-web-component/react/alert-link";

export const Alert = () => {
Expand Down Expand Up @@ -34,7 +33,6 @@ export const Alert = () => {
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>
</svg>
<div>
<SgdsAlertHeading headertag="h4">Hello, nice to meet you</SgdsAlertHeading>
<p>
Aww yeah, you successfully read this important
<SgdsAlertLink href="#" target="undefined">
Expand Down
3 changes: 0 additions & 3 deletions cypress/apps/react-app/src/components/Progress.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import SgdsProgress from "@govtechsg/sgds-web-component/react/progress";
import SgdsProgressBar from "@govtechsg/sgds-web-component/react/progress-bar";

export const Progress = () => {
return (
<SgdsProgress>
<SgdsProgressBar
label="50%"
variant="secondary"
Expand All @@ -12,6 +10,5 @@ export const Progress = () => {
aria-maxvalue="100"
aria-label="Loading in progress">
</SgdsProgressBar>
</SgdsProgress>
)
}
2 changes: 1 addition & 1 deletion cypress/apps/react-app/src/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

:root{
--sgds-primary: #0161AF;
--sgds-primary-bg: #0161AF;
}

0 comments on commit 06a0840

Please sign in to comment.