Skip to content

Commit

Permalink
GoogleCalender Button, ics File Download Button: text fixed in commun…
Browse files Browse the repository at this point in the history
…ity/events
  • Loading branch information
Shubhashish-Chakraborty committed Dec 14, 2024
1 parent 0349217 commit f44f3bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion components/buttons/GoogleCalendarButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import { useTranslation } from '../../utils/i18n';
import IconGoogleCalendar from '../icons/GoogleCalendar';
import Button from './Button';


// Importing text to display on button from common.json
import { githubButton } from '../../public/locales/en/common.json';

interface IGoogleCalendarButtonProps extends IButtonDefaultProps {}

/**
Expand All @@ -18,7 +22,7 @@ interface IGoogleCalendarButtonProps extends IButtonDefaultProps {}
* @param {string} props.className - The class name to be applied to the button.
*/
export default function GoogleCalendarButton({
text = 'googleCalendarBtn',
text = githubButton,
href,
target = '_blank',
iconPosition = ButtonIconPosition.LEFT,
Expand Down
5 changes: 4 additions & 1 deletion components/buttons/ICSFileButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { useTranslation } from '../../utils/i18n';
import IconCalendar from '../icons/Calendar';
import Button from './Button';

// Importing text to display on button from common.json
import { icsFileBtn } from '../../public/locales/en/common.json';

interface IICSFButtonProps extends IButtonDefaultProps {}

/**
Expand All @@ -18,7 +21,7 @@ interface IICSFButtonProps extends IButtonDefaultProps {}
* @param {string} props.className - The class name to be applied to the button.
*/
export default function ICSFButton({
text = 'icsFileBtn',
text = icsFileBtn,
href,
target = '_blank',
iconPosition = ButtonIconPosition.LEFT,
Expand Down

0 comments on commit f44f3bd

Please sign in to comment.