Use prettier to order tailwind classes

This commit is contained in:
Luke Vella 2022-04-16 10:25:29 +01:00
parent c5c2816c3d
commit eee23c1bb5
52 changed files with 268 additions and 262 deletions

View file

@ -14,12 +14,12 @@ export interface DateNavigationToolbarProps {
const DateNavigationToolbar: React.VoidFunctionComponent<DateNavigationToolbarProps> =
({ year, label, onPrevious, onToday, onNext }) => {
return (
<div className="flex border-b items-center w-full px-4 h-14 shrink-0">
<div className="flex h-14 w-full shrink-0 items-center border-b px-4">
<div className="grow">
<span className="text-sm font-bold text-gray-400 mr-2">{year}</span>
<span className="mr-2 text-sm font-bold text-gray-400">{year}</span>
<span className="text-lg font-bold text-gray-700">{label}</span>
</div>
<div className="flex space-x-2 items-center">
<div className="flex items-center space-x-2">
<div className="segment-button">
<button type="button" onClick={onPrevious}>
<ChevronLeft className="h-5" />