Skip to content

Commit

Permalink
Merge branch 'staging' of https://github.com/RevelioStartup/revelio-fe
Browse files Browse the repository at this point in the history
…into staging
  • Loading branch information
emiriko committed May 18, 2024
2 parents 1fce1c8 + e36b93f commit 5f18954
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/app/event/(event)/EventPurpose.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useEventContext } from '@/components/contexts/EventContext'
import { Button } from '@/components/elements/Button'
import { Input } from '@/components/elements/Forms/input'
import { useCreateEventMutation } from '@/redux/api/eventApi'
import { useAppSelector } from '@/redux/store'
Expand Down Expand Up @@ -154,14 +155,21 @@ export const EventPurpose: React.FC = () => {
width={50}
className="w-full"
/>
<LoadingButton
type="submit"
className="!text-center !font-bold rounded-lg flex justify-center m-auto !bg-teal-600 !text-white !w-full max-w-sm !px-6 !py-3"
loading={isLoading}
loadingIndicator={'Creating...'}
>
Plan{' '}
</LoadingButton>
{isLoading ? (
<LoadingButton
type="submit"
className="!text-center !font-bold rounded-lg flex justify-center m-auto !bg-teal-600 !text-white !w-full max-w-sm !px-6 !py-3"
loading={isLoading}
loadingIndicator={'Creating...'}
></LoadingButton>
) : (
<Button
type="submit"
className="!text-center !font-bold rounded-lg flex justify-center m-auto !bg-teal-600 !text-white !w-full max-w-sm !px-6 !py-3"
>
Plan{' '}
</Button>
)}
</div>
<Snackbar
open={open}
Expand Down

0 comments on commit 5f18954

Please sign in to comment.