Skip to content

Commit

Permalink
🐛 Fix: Remove exclusion of Icon from ignored files
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbakas committed Jul 6, 2024
1 parent 8f4ede5 commit 7667e7d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .gcloudignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

Expand Down
20 changes: 20 additions & 0 deletions src/frontend/ui/components/atoms/icons/Icon/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from "react";
import Image from "next/image";
import useColorScheme from "@semantyk/frontend/hooks/useColorScheme";

//* Main
export default function Icon(props) {
// Hooks
const { colorScheme } = useColorScheme();
// Logic
const suffix = colorScheme === "dark" ? "-dark" : "";
// Return
return colorScheme && (
<Image
alt="Semantyk"
src={`/images/icon${suffix}.svg`}
title="Semantyk"
{...props}
/>
);
}

0 comments on commit 7667e7d

Please sign in to comment.