-
Notifications
You must be signed in to change notification settings - Fork 39
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
Design system fixes #1882
Design system fixes #1882
Conversation
There are a couple of mistakes in the code provided:
Here is the corrected code: import { FC } from 'react';
import { IconWrapper } from '../IconWrapper';
import { IconProps } from '../Icons.types';
const Logout: FC<IconProps> = (allProps) => {
const { svgProps: props, ...restProps } = allProps;
return (
<IconWrapper componentName="Logout" icon={
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
{...props}
>
<path
d="M10.0962 1H3.63464C2.53008 1 1.63464 1.89543 1.63464 3V21C1.63464 22.1046 2.53007 23 3.63464 23H10.0962"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
/>
<path
d="M8.8269 11.5769H22.3654"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
/>
<path
d="M17.7115 6.0769L22.3654 11.5769L17.7115 17.5"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
/>
</svg>
}
{...restProps}
/>
);
};
export default Logout;
import { FC } from 'react';
import { IconWrapper } from '../IconWrapper';
import { IconProps } from '../Icons.types';
const Sale: FC<IconProps> = (allProps) => {
const { svgProps: props, ...restProps } = allProps;
return (
<IconWrapper componentName="Sale" icon={
<svg
xmlns="http://www.w3.org/2000/svg"
width="22"
height="22"
viewBox="0 0 22 22"
fill="none"
{...props}
>
<path
d="M1.22222 10.7778C6.49717 10.7778 10.7778 6.49717 10.7778 1.22222C10.7778 1.09984 10.8776 1 11 1C11.1224 1 11.2222 1.09984 11.2222 1.22222C11.2222 6.49717 15.5028 10.7778 20.7778 10.7778C20.9002 10.7778 21 10.8776 21 11C21 11.1224 20.9002 11.2222 20.7778 11.2222C15.5028 11.2222 11.2222 15.5028 11.2222 20.7778C11.2222 20.9002 11.1224 21 11 21C10.8776 21 10.7778 20.9002 10.7778 20.7778C10.7778 15.5028 6.49717 11.2222 1.22222 11.2222C1.09984 11.2222 1 11.1224 1 11C1 10.8776 1.09984 10.7778 1.22222 10.7778Z"
stroke="currentColor"
strokeWidth="2"
/>
</svg>
}
{...restProps}
/>
);
};
export default Sale; After the corrections, the code looks good. |
|
In the
In the
Overall, the code structure and logic seem fine. After the mentioned corrections, the components should render as expected. All looks good. |
All looks good. |
In the file src/blocks/icons/components/ArbitrumMonotone.tsx, there are a couple of mistakes:
Here is the corrected version: import { FC } from 'react';
import { IconWrapper } from '../IconWrapper';
import { IconProps } from '../Icons.types';
const ArbitrumMonotone: FC<IconProps> = (allProps) => {
const { svgProps: props, ...restProps } = allProps;
return (
<IconWrapper
componentName="ArbitrumMonotone"
icon={
<svg
width="inherit"
height="inherit"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<g clip-path="url(#clip0_8547_11033)">
<path
d="M0 8C0 3.58172 3.58172 0 8 0H12C16.4183 0 20 3.58172 20 8V12C20 16.4183 16.4183 20 12 20H8C3.58172 20 0 16.4183 0 12V8Z"
fill="var(--surface-tertiary)"
fill-rule="evenodd"
clip-rule="evenodd"
/>
</g>
<defs>
<clipPath id="clip0_8547_11033">
<path
d="M0 8C0 3.58172 3.58172 0 8 0H12C16.4183 0 20 3.58172 20 8V12C20 16.4183 16.4183 20 12 20H8C3.58172 20 0 16.4183 0 12V8Z"
fill="white"
/>
</clipPath>
</defs>
</svg>
}
{...restProps}
/>
);
};
export default ArbitrumMonotone; For the src/blocks/icons/components/BnbMonotone.tsx file, there are similar mistakes as in ArbitrumMonotone file. Please correct them accordingly. Once these corrections are done for both files, you can mark them as 'All looks good'. |
In the file src/blocks/Blocks.types.ts:
After these corrections, the rest of the code looks good. Let me know if you need any more assistance. |
@@ -29,4 +31,5 @@ export const breakpointMap: Record<Breakpoint | 'initial', DeviceSizeName | ''> | |||
lp: 'laptop', | |||
ll: 'laptopL', | |||
dp: 'desktop', | |||
uw: 'ultrawide', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the file src/blocks/Blocks.types.ts:
In the file src/blocks/icons/components/ArbitrumMonotone.tsx:
In the file src/blocks/icons/components/BnbMonotone.tsx:
In the file src/blocks/icons/components/EtheriumMonotone.tsx:
In the file src/blocks/icons/components/Logout.tsx:
Overall, there are syntax errors that need to be fixed in the mentioned files. The corrections will involve enclosing attribute values in curly braces where necessary. |
In the file src/blocks/Blocks.types.ts:
In the file src/blocks/Blocks.utils.ts:
All looks good. |
Pull Request Template
Ticket Number
Description
Fixed the given design system fixes.
Problem/Feature:
Type of Change
Checklist
Frontend Guidelines
Build & Testing
Screenshots/Video with Explanation
Before: Explain the previous behavior
After: What's changed now
Additional Context
Review & Approvals
Notes