Skip to content

Commit

Permalink
MR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sharlotta93 committed Nov 21, 2024
1 parent c23cd59 commit 9ffb272
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/atoms/AvailabilitySlots/AvailabilitySlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const AvailabilitySlot: FC<AvailabilitySlotProps> = ({

return new Intl.DateTimeFormat('en-US', options).format(date);
};

// TODO - check if border-1 is actually working
return (
<div className='rounded-md px-3 py-2 text-xs font-medium text-slate-800 border-1 border-slate-300 bg-white'>
{formatSlotTime(slotstart)}
Expand Down
6 changes: 3 additions & 3 deletions src/atoms/AvailabilitySlots/AvailabilitySlots.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ const meta: Meta<typeof SlotsComponent> = {
export default meta;
type Story = StoryObj<typeof meta>;

export const AvailabilitySlots: Story = {
export const AvailabilitySlotsStory: Story = {
args: {
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
slots: [
{
eventId: 'event-1',
slotstart: new Date('2024-07-12 00:00:00 +0200'),
slotstart: new Date('2024-10-28T16:00:00Z'),
duration: 30,
providerId: 'provider-1',
facility: 'CO - Cherry Creek',
location: EventDeliveryMethod.InPerson
},
{
eventId: 'event-2',
slotstart: new Date('2024-07-12 00:15:00 +0200'),
slotstart: new Date('2024-07-12T00:00:00+02:00'),
duration: 30,
providerId: 'provider-1',
facility: 'CO - Cherry Creek',
Expand Down
2 changes: 1 addition & 1 deletion src/atoms/AvailabilitySlots/AvailabilitySlots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const AvailabilitySlots: FC<AvailabilitySlotsProps> = ({
<AvailabilitySlot
key={slot.eventId}
timeZone={timeZone}
slotstart={slot.slotstart}
slotstart={new Date(slot.slotstart)}
/>
))}
</div>
Expand Down

0 comments on commit 9ffb272

Please sign in to comment.