Skip to content

feat: replaced slack icon with Discord#10193

Merged
PeerRich merged 11 commits intocalcom:mainfrom
JaideepGuntupalli:feat/replacing-slack-with-Discord
Jul 18, 2023
Merged

feat: replaced slack icon with Discord#10193
PeerRich merged 11 commits intocalcom:mainfrom
JaideepGuntupalli:feat/replacing-slack-with-Discord

Conversation

@JaideepGuntupalli
Copy link
Copy Markdown
Contributor

What does this PR do?

Abstracted Discord Icon SVG into its file and replaced the slack icon in the dashboard as per the screenshot in the given issue. Also replaced discord svg with its component in the 404 page.

Fixes #10182

image

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2023 9:24pm

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 17, 2023

@JaideepGuntupalli is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added Low priority Created by Linear-GitHub Sync ui area: UI, frontend, button, form, input ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work ✨ feature New feature or request labels Jul 17, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 17, 2023

Thank you for following the naming conventions! 🙏

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 17, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Comment thread packages/ui/package.json
"./components/toast": "./components/toast/index.tsx",
"./components/icon": "./components/icon/index.ts"
"./components/icon": "./components/icon/index.ts",
"./components/icon/Discord": "./components/icon/Discord.tsx"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you could have just exported Discord.tsx from icon/inedex.js

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried but for some reason it didn't work. The issue was it is trying to export from lucide react

Copy link
Copy Markdown
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

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

LGTM. Left one comment

import React, { forwardRef } from "react";

export const Discord = forwardRef<SVGSVGElement, React.SVGProps<SVGSVGElement>>(function Discord(props, ref) {
return (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It could be a static asset in public/discord.svg which is cacheable then. We can then use it as img src and add classes to it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hey i will make a follow up PR making these changes

Copy link
Copy Markdown
Member

@hariombalhara hariombalhara left a comment

Choose a reason for hiding this comment

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

1 nit change, otherwise good

@PeerRich
Copy link
Copy Markdown
Member

for some reason this PR wont merge, some tests are failing but without reason

@PeerRich PeerRich merged commit a2645c2 into calcom:main Jul 18, 2023
fritterhoff pushed a commit to hm-edu/cal.com that referenced this pull request Jul 25, 2023
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feature New feature or request Low priority Created by Linear-GitHub Sync ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work ui area: UI, frontend, button, form, input

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add discord icon in the place of slack icon.

4 participants