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: shake some images from server bundle #9267

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions packages/client/components/ActivityLibrary/ActivityCard.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import graphql from 'babel-plugin-relay/macro'
import clsx from 'clsx'
import React, {PropsWithChildren, useEffect, useRef, useState} from 'react'
import {upperFirst} from '../../utils/upperFirst'
import {MeetingTypeEnum} from '../../__generated__/NewMeetingQuery.graphql'
import {ActivityCard_template$key} from '../../__generated__/ActivityCard_template.graphql'
import {backgroundImgMap, CategoryID, MEETING_TYPE_TO_CATEGORY} from './Categories'
import {useFragment} from 'react-relay'
import {twMerge} from 'tailwind-merge'
import {ActivityCard_template$key} from '../../__generated__/ActivityCard_template.graphql'
import {MeetingTypeEnum} from '../../__generated__/NewMeetingQuery.graphql'
import {Tooltip} from '../../ui/Tooltip/Tooltip'
import {TooltipTrigger} from '../../ui/Tooltip/TooltipTrigger'
import {TooltipContent} from '../../ui/Tooltip/TooltipContent'
import {useFragment} from 'react-relay'
import graphql from 'babel-plugin-relay/macro'
import {TooltipTrigger} from '../../ui/Tooltip/TooltipTrigger'
import {upperFirst} from '../../utils/upperFirst'
import {ActivityLibraryCardDescription} from './ActivityLibraryCardDescription'
import {CategoryID, MEETING_TYPE_TO_CATEGORY} from './Categories'
import {backgroundImgMap} from './backgroundImgMap'

export interface CardTheme {
primary: string
Expand Down
17 changes: 0 additions & 17 deletions packages/client/components/ActivityLibrary/Categories.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import {MeetingTypeEnum} from '../../__generated__/NewMeetingQuery.graphql'
import retroBackgroundSrc from '../../../../static/images/illustrations/retro-background.png'
import standupBackgroundSrc from '../../../../static/images/illustrations/standup-background.png'
import feedbackBackgroundSrc from '../../../../static/images/illustrations/feedback-background.png'
import estimationBackgroundSrc from '../../../../static/images/illustrations/estimation-background.png'
import strategyBackgroundSrc from '../../../../static/images/illustrations/strategy-background.png'
import premortemBackgroundSrc from '../../../../static/images/illustrations/premortem-background.png'
import postmortemBackgroundSrc from '../../../../static/images/illustrations/postmortem-background.png'
import {CardTheme} from './ActivityCard'

export const MAIN_CATEGORIES = [
Expand Down Expand Up @@ -54,13 +47,3 @@ export const MEETING_TYPE_TO_CATEGORY: Record<MeetingTypeEnum, CategoryID> = {
poker: 'estimation',
teamPrompt: 'standup'
}

export const backgroundImgMap = {
retrospective: retroBackgroundSrc,
standup: standupBackgroundSrc,
feedback: feedbackBackgroundSrc,
estimation: estimationBackgroundSrc,
strategy: strategyBackgroundSrc,
premortem: premortemBackgroundSrc,
postmortem: postmortemBackgroundSrc
} as const
17 changes: 17 additions & 0 deletions packages/client/components/ActivityLibrary/backgroundImgMap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import estimationBackgroundSrc from '../../../../static/images/illustrations/estimation-background.png'
import feedbackBackgroundSrc from '../../../../static/images/illustrations/feedback-background.png'
import postmortemBackgroundSrc from '../../../../static/images/illustrations/postmortem-background.png'
import premortemBackgroundSrc from '../../../../static/images/illustrations/premortem-background.png'
import retroBackgroundSrc from '../../../../static/images/illustrations/retro-background.png'
import standupBackgroundSrc from '../../../../static/images/illustrations/standup-background.png'
import strategyBackgroundSrc from '../../../../static/images/illustrations/strategy-background.png'

export const backgroundImgMap = {
retrospective: retroBackgroundSrc,
standup: standupBackgroundSrc,
feedback: feedbackBackgroundSrc,
estimation: estimationBackgroundSrc,
strategy: strategyBackgroundSrc,
premortem: premortemBackgroundSrc,
postmortem: postmortemBackgroundSrc
} as const
Loading