Skip to content

Commit

Permalink
Back to single ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Amalie Henni authored and Amalie Henni committed Dec 18, 2024
1 parent 5074808 commit ed0e7e1
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions capra-fagradar/src/tech-leader-radar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createElement } from "react";
import { type Blip, Radar, type Quadrant } from "../radar";
import type { ModuleNamespace } from "vite/types/hot.js";
import { createElement } from 'react';
import { type Blip, Radar, type Quadrant } from '../radar';
import type { ModuleNamespace } from 'vite/types/hot.js';

// Dynamically import all mdx files in current dir
const modules = import.meta.glob("./**/*.mdx", {
const modules = import.meta.glob('./**/*.mdx', {
eager: true,
}) as ModuleNamespace;
const unsortedBlips: Blip[] = [];
Expand All @@ -23,7 +23,7 @@ for (const modulePath in modules) {
});
}

const quadrants = ["Organisasjon", "Prosess", "Folk", "Teknologi"];
const quadrants = ['Organisasjon', 'Prosess', 'Folk', 'Teknologi'];

const blips = unsortedBlips
.sort((a, b) => (a.depth || 0) - (b.depth || 0))
Expand All @@ -36,28 +36,28 @@ const blips = unsortedBlips
export const TechLeaderRadar = () => {
const quadrants = [
{
name: "Organisasjon",
orientation: "top-left",
blipColor: "#47A1AD",
blips: [...blips.filter((item) => item.quadrant === "Organisasjon")],
name: 'Organisasjon',
orientation: 'top-left',
blipColor: '#47A1AD',
blips: [...blips.filter((item) => item.quadrant === 'Organisasjon')],
},
{
name: "Teknologi",
orientation: "top-right",
blipColor: "#6B9E78",
blips: [...blips.filter((item) => item.quadrant === "Teknologi")],
name: 'Teknologi',
orientation: 'top-right',
blipColor: '#6B9E78',
blips: [...blips.filter((item) => item.quadrant === 'Teknologi')],
},
{
name: "Folk",
orientation: "bottom-left",
blipColor: "#CC8508",
blips: [...blips.filter((item) => item.quadrant === "Folk")],
name: 'Folk',
orientation: 'bottom-left',
blipColor: '#CC8508',
blips: [...blips.filter((item) => item.quadrant === 'Folk')],
},
{
name: "Prosess",
orientation: "bottom-right",
blipColor: "#E16A7B",
blips: [...blips.filter((item) => item.quadrant === "Prosess")],
name: 'Prosess',
orientation: 'bottom-right',
blipColor: '#E16A7B',
blips: [...blips.filter((item) => item.quadrant === 'Prosess')],
},
] satisfies [Quadrant, Quadrant, Quadrant, Quadrant];

Expand Down

0 comments on commit ed0e7e1

Please sign in to comment.