Skip to content

Commit

Permalink
fix: button calendar windows and mac
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 6, 2022
1 parent d9564a1 commit 08fbe94
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/components/Overlay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function Overlay(props: OverlayProps) {

{props.calendar && (
<>
{(isAndroid || isWindows) && (
{isAndroid && (
<>
<button
className={styles.google}
Expand All @@ -37,12 +37,31 @@ export function Overlay(props: OverlayProps) {
</button>
</>
)}
{(isIOS || isMacOs) && (
{isIOS && (
<button className={styles.apple} type="button">
<SiApple />
<ICalendarLink event={event}>Adicionar ao Apple Calendar</ICalendarLink>
</button>
)}

{(isWindows || isMacOs) && (
<>
<button
className={styles.google}
type="button"
onClick={() => {
handleGoogleCalendar();
}}
>
<SiGooglecalendar />
Adicionar ao Google Calendar
</button>
<button className={styles.apple} type="button">
<SiApple />
<ICalendarLink event={event}>Adicionar ao Apple Calendar</ICalendarLink>
</button>
</>
)}
</>
)}

Expand Down

0 comments on commit 08fbe94

Please sign in to comment.