Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: only one of today's and tomorrow's prayerCard is highlighted #8

Closed
wants to merge 1 commit into from

Conversation

smehdii
Copy link

@smehdii smehdii commented Aug 23, 2023

fix #2

Screenshot from 2023-08-23 19-04-29

@smehdii smehdii requested a review from Stormix August 23, 2023 17:05
@smehdii smehdii self-assigned this Aug 23, 2023
@@ -20,6 +20,7 @@ module.exports = {
],
rules: {
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off'
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-explicit-any': 'off'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why disable any check?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So i can create my beautiful baby Fixtype

@@ -0,0 +1 @@
export type FixType = any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L7ob

nextPrayerToday ? todayPrayerTimes[nextPrayerToday] : tomorrowPrayerTimes[nextPrayerTomorrow]
) as Date;
let nextPrayer = nextPrayerToday;
let nextPrayerTime: FixType = nextPrayerToday ? todayPrayerTimes[nextPrayerToday] : null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use keyof adhan.PrayerTimes | null instead of FixType.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already tested :)

Type 'Coordinates' is not assignable to type 'keyof PrayerTimes | null'.ts(2322)

I "any" it for now because no time for it, otherwise i'll take a close look at it asap.

@Stormix Stormix closed this Aug 23, 2023
@Stormix Stormix added the bug Something isn't working label Aug 23, 2023
@Stormix Stormix reopened this Aug 23, 2023
@Stormix
Copy link
Contributor

Stormix commented Aug 25, 2023

Fixed in a separate commits. Thank you for your contribution!

@Stormix Stormix closed this Aug 25, 2023
@Stormix
Copy link
Contributor

Stormix commented Aug 28, 2023

@all-contributors please add @smehdii for code and ideas

@allcontributors
Copy link
Contributor

@Stormix

I've put up a pull request to add @smehdii! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Highlighted Prayer
2 participants