Client - fix sport icon color (when changed) on calendar on small resolutions

This commit is contained in:
Sam
2022-01-16 19:15:15 +01:00
parent 29180a02ca
commit 877fa0faaa
10 changed files with 14 additions and 13 deletions

View File

@ -36,7 +36,7 @@
}
const props = defineProps<Props>()
const { workout, sportLabel } = toRefs(props)
const { workout, sportLabel, sportColor } = toRefs(props)
</script>
<style lang="scss">

View File

@ -16,6 +16,7 @@
:key="index"
:workout="workout"
:sportLabel="getSportLabel(workout, sports)"
:sportColor="getSportColor(workout, sports)"
/>
</div>
</div>
@ -29,7 +30,7 @@
import DonutChart from '@/components/Dashboard/UserCalendar/DonutChart.vue'
import { ISport } from '@/types/sports'
import { IWorkout } from '@/types/workouts'
import { getSportLabel } from '@/utils/sports'
import { getSportColor, getSportLabel } from '@/utils/sports'
interface Props {
colors: Record<number, string>