Skip to content

Commit 26f9279

Browse files
committed
[UI] Sistent Identity Code page update images with the tables html
Signed-off-by: Namanv0509 <[email protected]>
1 parent 31695ff commit 26f9279

File tree

1 file changed

+8
-23
lines changed
  • src/sections/Projects/Sistent/identity/color

1 file changed

+8
-23
lines changed

src/sections/Projects/Sistent/identity/color/code.js

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@ import React from "react";
22
import { navigate } from "gatsby";
33
import { useLocation } from "@reach/router";
44

5-
import BrandColors from "../../../../../assets/images/app/projects/sistent/brand-colors-table.png";
6-
import GreyscaleColors from "../../../../../assets/images/app/projects/sistent/greyscale-colors-table.png";
7-
import BgColors from "../../../../../assets/images/app/projects/sistent/bg-colors-table.png";
8-
import FunctionColors from "../../../../../assets/images/app/projects/sistent/function-colors-table.png";
9-
import TextColors from "../../../../../assets/images/app/projects/sistent/text-colors-table.png";
10-
import BorderColors from "../../../../../assets/images/app/projects/sistent/border-colors-table.png";
11-
import ComponentColors from "../../../../../assets/images/app/projects/sistent/components-table.png";
12-
13-
import BrandColorsDark from "../../../../../assets/images/app/projects/sistent/brand-colors-table-dark.png";
14-
import GreyscaleColorsDark from "../../../../../assets/images/app/projects/sistent/greyscale-colors-table-dark.png";
15-
import BgColorsDark from "../../../../../assets/images/app/projects/sistent/bg-colors-table-dark.png";
16-
import FunctionColorsDark from "../../../../../assets/images/app/projects/sistent/function-colors-table-dark.png";
17-
import TextColorsDark from "../../../../../assets/images/app/projects/sistent/text-colors-table-dark.png";
18-
import BorderColorsDark from "../../../../../assets/images/app/projects/sistent/border-colors-table-dark.png";
19-
import ComponentColorsDark from "../../../../../assets/images/app/projects/sistent/components-table-dark.png";
205

216
import { SistentLayout } from "../../sistent-layout";
227
import { Col, Row } from "../../../../../reusecore/Layout";
@@ -443,7 +428,7 @@ const PreviewTextBox = styled("p")(({ theme, tokenName }) => {
443428
"text-error": theme.palette.text.error,
444429
};
445430

446-
const resolvedColors = colorsMap[tokenName] ;
431+
const resolvedColors = colorsMap[tokenName] ;
447432

448433
return {
449434
color: resolvedColors,
@@ -593,7 +578,7 @@ const ColorCode = () => {
593578
{brandColors.map((col, idx) => (
594579
<TableRow
595580
key={col.tokenName}
596-
sx={{ backgroundColor: idx % 2 === 0 ? white : tableGrey }}
581+
597582
>
598583
<StyledTableCell>{col.tokenName}</StyledTableCell>
599584
<StyledTableCell>{col.name}</StyledTableCell>
@@ -633,7 +618,7 @@ const ColorCode = () => {
633618
{greyscaleColors.map((col, idx) => (
634619
<TableRow
635620
key={col.tokenName}
636-
sx={{ backgroundColor: idx % 2 === 0 ? white : tableGrey }}
621+
637622
>
638623
<StyledTableCell>{col.tokenName}</StyledTableCell>
639624
<StyledTableCell>{col.name}</StyledTableCell>
@@ -674,7 +659,7 @@ const ColorCode = () => {
674659
{functionColors.map((col, idx) => (
675660
<TableRow
676661
key={col.tokenName}
677-
sx={{ backgroundColor: idx % 2 === 0 ? white : tableGrey }}
662+
678663
>
679664
<StyledTableCell>{col.tokenName}</StyledTableCell>
680665
<StyledTableCell>{col.name}</StyledTableCell>
@@ -724,7 +709,7 @@ const ColorCode = () => {
724709
{backgroundColors.map((col, idx) => (
725710
<TableRow
726711
key={col.tokenName}
727-
sx={{ backgroundColor: idx % 2 === 0 ? white : tableGrey }}
712+
728713
>
729714
<StyledTableCell>{col.tokenName}</StyledTableCell>
730715
<StyledTableCell>{col.Alias_of}</StyledTableCell>
@@ -767,7 +752,7 @@ const ColorCode = () => {
767752
{textColors.map((col, idx) => (
768753
<TableRow
769754
key={col.tokenName}
770-
sx={{ backgroundColor: idx % 2 === 0 ? white : tableGrey }}
755+
771756
>
772757
<StyledTableCell>{col.tokenName}</StyledTableCell>
773758
<StyledTableCell>{col.Alias_of}</StyledTableCell>
@@ -810,7 +795,7 @@ const ColorCode = () => {
810795
{borderColors.map((col, idx) => (
811796
<TableRow
812797
key={col.tokenName}
813-
sx={{ backgroundColor: idx % 2 === 0 ? white : tableGrey }}
798+
814799
>
815800
<StyledTableCell>{col.tokenName}</StyledTableCell>
816801
<StyledTableCell>{col.Alias_of}</StyledTableCell>
@@ -858,7 +843,7 @@ const ColorCode = () => {
858843
{componentColors.map((col, idx) => (
859844
<TableRow
860845
key={col.tokenName}
861-
sx={{ backgroundColor: idx % 2 === 0 ? white : tableGrey }}
846+
862847
>
863848
<StyledTableCell>{col.tokenName}</StyledTableCell>
864849
<StyledTableCell>{col.Alias_of}</StyledTableCell>

0 commit comments

Comments
 (0)