Compare commits
1 commit
d621131d50
...
5dd447ae90
Author | SHA1 | Date | |
---|---|---|---|
5dd447ae90 |
4 changed files with 5 additions and 15 deletions
|
@ -17,10 +17,7 @@ export default function Events() {
|
||||||
const events = eventsData?.data?.events || [];
|
const events = eventsData?.data?.events || [];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div className='relative h-full flex flex-col items-center' data-cy='events-page'>
|
||||||
className='relative h-full flex flex-col items-center'
|
|
||||||
data-cy='events-page'
|
|
||||||
>
|
|
||||||
{/* Heading */}
|
{/* Heading */}
|
||||||
<h1 className='text-3xl font-bold mt-8 mb-4 text-center z-10'>
|
<h1 className='text-3xl font-bold mt-8 mb-4 text-center z-10'>
|
||||||
My Events
|
My Events
|
||||||
|
|
|
@ -17,7 +17,7 @@ export default function LabeledInput({
|
||||||
variantSize = 'default',
|
variantSize = 'default',
|
||||||
autocomplete,
|
autocomplete,
|
||||||
error,
|
error,
|
||||||
'data-cy': dataCy,
|
"data-cy": dataCy,
|
||||||
...rest
|
...rest
|
||||||
}: {
|
}: {
|
||||||
label: string;
|
label: string;
|
||||||
|
@ -31,7 +31,7 @@ export default function LabeledInput({
|
||||||
variantSize?: 'default' | 'big' | 'textarea';
|
variantSize?: 'default' | 'big' | 'textarea';
|
||||||
autocomplete?: string;
|
autocomplete?: string;
|
||||||
error?: string;
|
error?: string;
|
||||||
'data-cy'?: string;
|
"data-cy"?: string;
|
||||||
} & React.InputHTMLAttributes<HTMLInputElement>) {
|
} & React.InputHTMLAttributes<HTMLInputElement>) {
|
||||||
const [passwordVisible, setPasswordVisible] = React.useState(false);
|
const [passwordVisible, setPasswordVisible] = React.useState(false);
|
||||||
const [inputValue, setInputValue] = React.useState(
|
const [inputValue, setInputValue] = React.useState(
|
||||||
|
|
|
@ -216,11 +216,7 @@ const EventForm: React.FC<EventFormProps> = (props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={calendarOpen} onOpenChange={setCalendarOpen}>
|
<Dialog open={calendarOpen} onOpenChange={setCalendarOpen}>
|
||||||
<form
|
<form className='flex flex-col gap-5 w-full' onSubmit={handleSubmit} data-cy='event-form'>
|
||||||
className='flex flex-col gap-5 w-full'
|
|
||||||
onSubmit={handleSubmit}
|
|
||||||
data-cy='event-form'
|
|
||||||
>
|
|
||||||
<div className='grid grid-row-start:auto gap-4 sm:gap-8 w-full'>
|
<div className='grid grid-row-start:auto gap-4 sm:gap-8 w-full'>
|
||||||
<div className='h-full w-full mt-0 ml-2 mb-16 flex items-center max-sm:grid max-sm:grid-row-start:auto max-sm:mb-6 max-sm:mt-10 max-sm:ml-0'>
|
<div className='h-full w-full mt-0 ml-2 mb-16 flex items-center max-sm:grid max-sm:grid-row-start:auto max-sm:mb-6 max-sm:mt-10 max-sm:ml-0'>
|
||||||
<div className='w-[100px] max-sm:w-full max-sm:flex max-sm:justify-center'>
|
<div className='w-[100px] max-sm:w-full max-sm:flex max-sm:justify-center'>
|
||||||
|
|
|
@ -25,10 +25,7 @@ export default function Header({
|
||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<div className='w-full grid grid-rows-[50px_1fr] h-screen'>
|
<div className='w-full grid grid-rows-[50px_1fr] h-screen'>
|
||||||
<header
|
<header className='border-b-1 grid-cols-[1fr_3fr_1fr] grid items-center px-2 shadow-md' data-cy='header'>
|
||||||
className='border-b-1 grid-cols-[1fr_3fr_1fr] grid items-center px-2 shadow-md'
|
|
||||||
data-cy='header'
|
|
||||||
>
|
|
||||||
<span className='flex justify-start'>
|
<span className='flex justify-start'>
|
||||||
<SidebarTrigger variant='outline_primary' size='icon' />
|
<SidebarTrigger variant='outline_primary' size='icon' />
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue