mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
function documentation and changed styling of create button
This commit is contained in:
parent
efea3662ea
commit
ede76627d1
1 changed files with 4 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ export const SubmitPlan = ({
|
|||
return (
|
||||
<button
|
||||
type="button"
|
||||
className="inline-flex justify-center rounded-md border border-transparent bg-brandtan px-4 py-2 text-sm font-medium text-grey-900 hover:bg-hovertan focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:bg-gray-300 disabled:opacity-50"
|
||||
className="text-white inline-flex justify-center rounded-md border border-transparent bg-brandblue px-4 py-2 text-sm font-medium text-grey-900 hover:bg-hoverblue focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:bg-gray-300 disabled:opacity-50"
|
||||
onClick={handleSubmit}
|
||||
disabled={buttonDisabled || isLoading}
|
||||
>
|
||||
|
|
@ -219,6 +219,9 @@ export default function UploadCsvModal({
|
|||
scheme?: string,
|
||||
value?: string
|
||||
) {
|
||||
// This function is defined as such to accomodate for the asynchonous nature of state setting
|
||||
// The first time this is called, the setState function will be run before this but the state value
|
||||
// will not have updated yet, so we need to pass in the value as an argument to check if the value has been updated
|
||||
if (
|
||||
(goal || selectedGoal) &&
|
||||
(scheme || fundingScheme) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue