Skip to content

Commit

Permalink
Fix Upload Design Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
alderwhiteford committed Dec 8, 2023
1 parent 914aac4 commit 911ca35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion frontend/src/components/Upload/BottomNavOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box } from '@mui/material';
import StyledButton from '../Button/Button';
import router from '../../router';

export type BottomNavProps = {
cancel: () => void,
Expand All @@ -15,14 +16,19 @@ export default function BottomNavOptions({
enabled
}: BottomNavProps) {
if (step === 6 || step === 7) return null;

const returnHome = () => {
router.navigate({ to: '/jobs' })
}

return (
<Box className='flex flex-row justify-center gap-x-6 mt-6 mb-8'>
{step !== 8 ?
<>
<StyledButton
color={'primary'}
size={'md'}
onClick={cancel}
onClick={step === 1 ? returnHome : cancel}
>
Cancel
</StyledButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Checkout({states, setters}: CheckoutProps) {
console.log(JSON.stringify(options));

return (
<div className="mt-32">
<div className="">
<div id="checkout">
{clientSecret && (
<EmbeddedCheckoutProvider
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Upload/VoxetiStepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function VoxetiStepper({currentStep}: StepperProps) {
alternativeLabel
activeStep={currentStep}
connector={<VoxetiConnector />}
className='mb-16'
className='mb-16 !mt-20'
>
{steps.map((label) => (
<Step key={label}>
Expand Down

0 comments on commit 911ca35

Please sign in to comment.