Client - fix sport icon color (when changed) on calendar on small resolutions
This commit is contained in:
@ -36,7 +36,7 @@
|
||||
}
|
||||
const props = defineProps<Props>()
|
||||
|
||||
const { workout, sportLabel } = toRefs(props)
|
||||
const { workout, sportLabel, sportColor } = toRefs(props)
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user