mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 14:44:21 +00:00
Rename FormDateRange to FormFromTo
This commit is contained in:
parent
1c00c6d8e0
commit
5e070fd1e4
4 changed files with 38 additions and 38 deletions
|
@ -10,22 +10,22 @@ type FormDateRangeProps = {
|
|||
}
|
||||
|
||||
|
||||
export function FormDateRange(props: FormDateRangeProps) {
|
||||
export function FormFromTo(props: FormDateRangeProps) {
|
||||
return (
|
||||
<div className={classNames({
|
||||
"form-daterange": true,
|
||||
"form-daterange-preview": props.preview,
|
||||
"form-fromto": true,
|
||||
"form-fromto-preview": props.preview,
|
||||
})}>
|
||||
<div className="form-daterange-icon">
|
||||
<div className="form-fromto-icon">
|
||||
{props.icon}
|
||||
</div>
|
||||
<div className="form-daterange-start">
|
||||
<div className="form-fromto-start">
|
||||
{props.start}
|
||||
</div>
|
||||
<div className="form-daterange-connector">
|
||||
<div className="form-fromto-connector">
|
||||
{props.connector}
|
||||
</div>
|
||||
<div className="form-daterange-end">
|
||||
<div className="form-fromto-end">
|
||||
{props.end}
|
||||
</div>
|
||||
</div>
|
|
@ -1,5 +1,5 @@
|
|||
import { ReactNode } from "react"
|
||||
import { FormDateRange } from "../form/FormDateRange"
|
||||
import { FormFromTo } from "../form/FormFromTo"
|
||||
|
||||
type ViewEventProps = {
|
||||
title: ReactNode,
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
.form-daterange {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.form-daterange-icon {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.form-daterange-connector {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.form-daterange-start, .form-daterange-end {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.form-daterange-icon, .form-daterange-connector {
|
||||
flex-grow: 0;
|
||||
}
|
||||
|
||||
.form-daterange-preview {
|
||||
}
|
||||
|
||||
.form-daterange-preview .form-daterange-start, .form-daterange-preview .form-daterange-end {
|
||||
flex-grow: 0;
|
||||
}
|
30
styles/components/form-fromto.css
Normal file
30
styles/components/form-fromto.css
Normal file
|
@ -0,0 +1,30 @@
|
|||
.form-fromto {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.form-fromto-icon {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.form-fromto-connector {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.form-fromto-start,
|
||||
.form-fromto-end {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.form-fromto-icon,
|
||||
.form-fromto-connector {
|
||||
flex-grow: 0;
|
||||
}
|
||||
|
||||
.form-fromto-preview .form-fromto-start,
|
||||
.form-fromto-preview .form-fromto-end {
|
||||
flex-grow: 0;
|
||||
}
|
Loading…
Reference in a new issue