🎥 Make videos programmatically with React
Add check circle filled icon
Pramodd047d1ad811e
diff --git a/packages/studio/src/components/RenderModal/WebRenderModalLicenseKeyValidation.tsx b/packages/studio/src/components/RenderModal/WebRenderModalLicenseKeyValidation.tsxindex 4f6547f156..bfafccdc56 100644--- a/packages/studio/src/components/RenderModal/WebRenderModalLicenseKeyValidation.tsx+++ b/packages/studio/src/components/RenderModal/WebRenderModalLicenseKeyValidation.tsx@@ -1,6 +1,7 @@import React, {useEffect} from 'react';-import {LIGHT_TEXT} from '../../helpers/colors';-import {Checkmark} from '../../icons/Checkmark';+import {LIGHT_TEXT, WARNING_COLOR} from '../../helpers/colors';+import {CheckCircleFilled} from '../../icons/check-circle-filled';+import {WarningTriangle} from '../NewComposition/ValidationMessage';const textStyle: React.CSSProperties = {color: LIGHT_TEXT,@@ -9,7 +10,6 @@ const textStyle: React.CSSProperties = {lineHeight: 1.5,display: 'flex',alignItems: 'center',- gap: 8,};const linkStyle: React.CSSProperties = {@@ -19,6 +19,18 @@ const linkStyle: React.CSSProperties = {cursor: 'pointer',};+const bulletStyle: React.CSSProperties = {+ display: 'flex',+ alignItems: 'center',+ gap: 8,+};++const icon: React.CSSProperties = {+ width: 14,+ height: 14,+ flexShrink: 0,+};+type WebRenderModalLicenseKeyValidationProps = {readonly licenseKey: string | null;};@@ -66,30 +78,42 @@ export const WebRenderModalLicenseKeyValidation: React.FC<return (<div style={textStyle}>{isLoading && 'Validating license key...'}- {validation && !validation.isValid && '⚠️ Invalid license key'}+ {validation && !validation.isValid && (+ <div style={bulletStyle}>+ <WarningTriangle+ type="warning"+ style={{...icon, fill: WARNING_COLOR}}+ />+ <div style={textStyle}>Invalid license key</div>+ </div>+ )}{validation && validation.isValid && (<div>- <div style={textStyle}>- <Checkmark /> Belongs to{' '}- <a- href={`${PRO_HOST}/projects/${validation.projectSlug}`}- target="_blank"- style={linkStyle}- >- {validation.projectName}- </a>{' '}- - View{' '}- <a- href={`${PRO_HOST}/projects/${validation.projectSlug}/usage#client-renders-usage`}- target="_blank"- style={linkStyle}- >- usage- </a>+ <div style={bulletStyle}>+ <CheckCircleFilled style={{...icon, fill: LIGHT_TEXT}} />+ <div style={textStyle}>+ Belongs to + <a+ href={`${PRO_HOST}/projects/${validation.projectSlug}`}+ target="_blank"+ style={linkStyle}+ >+ {validation.projectName}+ </a>+ - View + <a+ href={`${PRO_HOST}/projects/${validation.projectSlug}/usage#client-renders-usage`}+ target="_blank"+ style={linkStyle}+ >+ usage+ </a>+ </div></div>{validation.hasActiveSubscription && (- <div style={textStyle}>- <Checkmark /> Active Company License+ <div style={bulletStyle}>+ <CheckCircleFilled style={{...icon, fill: LIGHT_TEXT}} />+ <div style={textStyle}>Active Company License</div></div>)}</div>diff --git a/packages/studio/src/icons/check-circle-filled.tsx b/packages/studio/src/icons/check-circle-filled.tsxnew file mode 100644index 0000000000..e87fd3df4f--- /dev/null+++ b/packages/studio/src/icons/check-circle-filled.tsx@@ -0,0 +1,14 @@+import React from 'react';++export const CheckCircleFilled: React.FC<React.SVGProps<SVGSVGElement>> = (+ props,+) => (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ style={{width: 14, height: 14}}+ viewBox="0 0 512 512"+ {...props}+ >+ <path d="M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z" />+ </svg>+);