Skip to content

Toastify icons are large and not in the toast popup #181

@krowvin

Description

@krowvin

If I create the following form:

 <CWMSForm
      office={OFFICE}
      cdaUrl={CDA_URL}
      className="my-4"
      storeRule="REPLACE_ALL"
      calendarLabel="LOWER RED RESERVOIR REPORT FOR"
      calendarInterval="day"
      resetOnSubmit={false}
      calendarSnapTo="previous"
    > {/* Extra removed */}
          {PROJECTS.map((project) => {
            return <ReleaseDataRow key={project} project={project} time={time} />
          })}
      </UsaceBox>
    </CWMSForm>

With ReleaseDataRow as:

// extra removed, component called ReleaseDataRow that dynamically decides to use a CWMSInput or another label
<CWMSInput
        AllowMissingData
        type="text"
        tsid={isTimeseries ? tsid : undefined}
        className={`w-24 text-center  ${className ?? ""}`}
        name={`${project}_${isTimeseries ? "ts" : "level"}`}
        label={label ?? name}
        units={resolvedUnits}
        timeOffset={timeOffset}
        title={timestamp ? `${name} @ ${dayjs(timestamp).format("MM/DD/YYYY HH:mm:ssZZ")}` : name}
        defaultValue={`${
          value === undefined || value === null ? "" : Number(value).toFixed(precision)
        }`.trim()}
      />

I get the following when I hit submit:

Image

If I add this line to my main.jsx, it works and I see this
import "react-toastify/dist/ReactToastify.css"
Added after index.css

Image

I noticed we have this ReactToastify.css line here:

import "react-toastify/dist/ReactToastify.css";

Not sure why I needed to add it again?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions