diff --git a/src/features/artifacts/components/ArtifactsItem.tsx b/src/features/artifacts/components/ArtifactsItem.tsx index e08ad121..c29b0ce6 100644 --- a/src/features/artifacts/components/ArtifactsItem.tsx +++ b/src/features/artifacts/components/ArtifactsItem.tsx @@ -1,6 +1,8 @@ import Box from "@mui/material/Box"; import Link from "@mui/material/Link"; import React from "react"; +import OpenInNewIcon from "@mui/icons-material/OpenInNew"; +import { useTheme } from "@mui/material/styles"; import { Artifact } from "../../../common/models"; import { PrefContext } from "../../../preferences"; @@ -19,13 +21,36 @@ export const ArtifactItem = ({ artifact }: IArtifactsProps) => { ? pref.apiUrl : `${window.location.origin}${pref.apiUrl}`; const route = new URL(artifact.route, url).toString(); + const theme = useTheme(); return ( - + + {artifact.name} diff --git a/src/theme.tsx b/src/theme.tsx index 6b058cc8..d9e60b2e 100644 --- a/src/theme.tsx +++ b/src/theme.tsx @@ -1,8 +1,46 @@ +/* eslint-disable @typescript-eslint/naming-convention */ import { createTheme, ThemeProvider } from "@mui/material"; +import { PaletteColorOptions } from "@mui/material/styles"; import React from "react"; import { green, purple, gray, white, red, orange, blue, black } from "./colors"; +declare module "@mui/material/styles" { + interface Palette { + accent: PaletteColor; + } + + interface PaletteOptions { + accent?: PaletteColorOptions; + } + + interface PaletteColor { + 50: string; + 100: string; + 200: string; + 300: string; + 400: string; + 500: string; + 600: string; + 700: string; + 800: string; + 900: string; + } + + interface SimplePaletteColorOptions { + 50?: string; + 100?: string; + 200?: string; + 300?: string; + 400?: string; + 500?: string; + 600?: string; + 700?: string; + 800?: string; + 900?: string; + } +} + const baseTheme = createTheme({ typography: { fontFamily: '"Inter", sans-serif'