Skip to content

Commit

Permalink
Minor update for styling
Browse files Browse the repository at this point in the history
  • Loading branch information
hannyle committed May 31, 2022
1 parent a69c295 commit f45ce89
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
12 changes: 8 additions & 4 deletions src/components/SubmissionWizard/WizardComponents/WizardStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ import { setObjectType, resetObjectType } from "features/wizardObjectTypeSlice"
import { updateStep } from "features/wizardStepObjectSlice"
import { setSubmissionType } from "features/wizardSubmissionTypeSlice"
import { useAppDispatch, useAppSelector } from "hooks"
import draftAPIService from "services/draftAPI"
import objectAPIService from "services/objectAPI"
import type { FormRef, ObjectInsideSubmissionWithTags } from "types"
import { pathWithLocale } from "utils"

const ActionButton = (props: { step: number; parent: string; buttonText: string; disabled: boolean }) => {
const { step, parent, buttonText, disabled } = props
const ActionButton = (props: {
step: number
parent: string
buttonText: string
disabled: boolean
formRef?: FormRef
}) => {
const { step, parent, buttonText, disabled, formRef } = props
const navigate = useNavigate()
const submission = useAppSelector(state => state.submission)
const formState = useAppSelector(state => state.submissionType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import WizardStep from "./WizardStep"
import { resetObjectType } from "features/wizardObjectTypeSlice"
import { resetStepObject, updateStep } from "features/wizardStepObjectSlice"
import { useAppDispatch, useAppSelector } from "hooks"
import type { Schema, FormRef } from "types"
import type { FormRef } from "types"

// Top & bottom borders for first and last disabled elements
const AccordionWrapper = styled("div")(({ theme }) => ({
Expand Down Expand Up @@ -74,7 +74,7 @@ const AccordionDetails = styled(MuiAccordionDetails)(({ theme }) => ({
*/

const WizardStepper = ({ formRef }: { formRef?: FormRef }) => {
const objectsArray = useAppSelector(state => state.objectTypesArray)
const objectTypesArray = useAppSelector(state => state.objectTypesArray)
const submission = useAppSelector(state => state.submission)
const currentStepObject = useAppSelector(state => state.stepObject)
const dispatch = useAppDispatch()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,13 @@ const DisplayDescription = ({ description, children }: { description: string; ch
setIsReadMore(!isReadMore)
}

const ReadmoreText = styled("span")(() => ({
const ReadmoreText = styled("span")(({ theme }) => ({
fontWeight: 700,
textDecoration: "underline",
display: "block",
marginTop: "0.5rem",
color: "#006778",
color: theme.palette.primary.main,
"&:hover": { cursor: "pointer" },
}))

return (
Expand Down

0 comments on commit f45ce89

Please sign in to comment.