Skip to content

Commit

Permalink
refactor(web/menu): remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Jan 30, 2023
1 parent 3fb66f3 commit 054dc26
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions web/src/features/menu/radial/index.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
import { ActionIcon, Box, createStyles, Stack, Text, Transition } from '@mantine/core';
import { Box, createStyles } from '@mantine/core';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { IconProp } from '@fortawesome/fontawesome-svg-core';
import { useState } from 'react';
import { useNuiEvent } from '../../../hooks/useNuiEvent';
import { debugData } from '../../../utils/debugData';
import { fetchNui } from '../../../utils/fetchNui';
import ScaleFade from '../../../transitions/ScaleFade';

const radius = 60;

// https://codesandbox.io/embed/circular-menu-e94ug
function getTransform(index: number, totalItems: number) {
const value = index / totalItems;

const x = radius * Math.cos(Math.PI * 2 * (value - 0.25));
const y = radius * Math.sin(Math.PI * 2 * (value - 0.25));

return `translate(${x}px, ${y}px)`;
}

export interface MenuItem {
icon: IconProp;
label: string;
Expand Down

0 comments on commit 054dc26

Please sign in to comment.