fix: reject icon color (#9031)
Signed-off-by: Udit Takkar <[email protected]>
This commit is contained in:
1 parent
2fc4676f6d
commit
def80ea4cf
4 files changed
+3
-15
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 743 B |
@@ -1,3 +1 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-ban"><circle cx="12" cy="12" r="10"></circle><line x1="4.93" x2="19.07" y1="4.93" y2="19.07"></line></svg>
|
||||||
<path stroke="white" stroke-linecap="round" stroke-linejoin="round" d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636" />
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 308 B |
@@ -65,11 +65,10 @@ export const CallToAction = (props: {
|
|||||||
marginLeft: 0,
|
marginLeft: 0,
|
||||||
}}
|
}}
|
||||||
iconName={startIconName}
|
iconName={startIconName}
|
||||||
secondary={secondary}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{label}
|
{label}
|
||||||
{endIconName && <CallToActionIcon iconName={endIconName} secondary={secondary} />}
|
{endIconName && <CallToActionIcon iconName={endIconName} />}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -2,15 +2,7 @@ import React from "react";
|
|||||||
|
|
||||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||||
|
|
||||||
export const CallToActionIcon = ({
|
export const CallToActionIcon = ({ iconName, style }: { iconName: string; style?: React.CSSProperties }) => (
|
||||||
secondary,
|
|
||||||
iconName,
|
|
||||||
style,
|
|
||||||
}: {
|
|
||||||
secondary?: boolean;
|
|
||||||
iconName: string;
|
|
||||||
style?: React.CSSProperties;
|
|
||||||
}) => (
|
|
||||||
<img
|
<img
|
||||||
src={`${WEBAPP_URL}/emails/${iconName}.png`}
|
src={`${WEBAPP_URL}/emails/${iconName}.png`}
|
||||||
srcSet={`${WEBAPP_URL}/emails/${iconName}.svg`}
|
srcSet={`${WEBAPP_URL}/emails/${iconName}.svg`}
|
||||||
@@ -19,7 +11,6 @@ export const CallToActionIcon = ({
|
|||||||
height: "1rem",
|
height: "1rem",
|
||||||
width: "1rem",
|
width: "1rem",
|
||||||
marginLeft: "0.5rem",
|
marginLeft: "0.5rem",
|
||||||
...(secondary && { filter: "brightness(50%)" }),
|
|
||||||
...style,
|
...style,
|
||||||
}}
|
}}
|
||||||
alt=""
|
alt=""
|
||||||
|
|||||||
Reference in new issue
Block a user