Skip to content

Commit

Permalink
fix: remove Menu web version and fix styles variables
Browse files Browse the repository at this point in the history
Signed-off-by: clegirar <[email protected]>
  • Loading branch information
clegirar authored and WaDadidou committed Oct 4, 2023
1 parent c3b32dc commit ae633a1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 93 deletions.
23 changes: 10 additions & 13 deletions packages/components/Menu/Menu.tsx → packages/components/Menu.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import React, { useRef } from "react";
import { View, TouchableOpacity } from "react-native";

import { useDropdowns } from "../../context/DropdownsProvider";
import { neutral33 } from "../../utils/style/colors";
import { BrandText } from "../BrandText";
import { PrimaryBox } from "../boxes/PrimaryBox";
import { BrandText } from "./BrandText";
import { PrimaryBox } from "./boxes/PrimaryBox";
import { useDropdowns } from "../context/DropdownsProvider";
import { neutral33 } from "../utils/style/colors";
import { fontSemibold13 } from "../utils/style/fonts";
import { layout } from "../utils/style/layout";

const DEFAULT_WIDTH = 164;

export interface MenuProps {
interface MenuProps {
component: React.ReactNode;
items: {
label: string;
Expand Down Expand Up @@ -39,7 +41,7 @@ export const Menu: React.FC<MenuProps> = ({
style={{ position: "absolute", right: 0, bottom: -20 }}
mainContainerStyle={{
position: "absolute",
paddingHorizontal: 12,
paddingHorizontal: layout.spacing_x1_5,
}}
>
{items.map((item, index) => (
Expand All @@ -52,20 +54,15 @@ export const Menu: React.FC<MenuProps> = ({
}}
activeOpacity={0.7}
style={[
{ paddingVertical: 12, width: "100%" },
{ paddingVertical: layout.spacing_x1_5, width: "100%" },
index !== items.length - 1 && {
borderBottomWidth: 1,
borderColor: neutral33,
},
]}
>
<BrandText
style={[
{
fontSize: 13,
},
item.disabled && { opacity: 0.5 },
]}
style={[fontSemibold13, item.disabled && { opacity: 0.5 }]}
>
{item.label}
</BrandText>
Expand Down
79 changes: 0 additions & 79 deletions packages/components/Menu/Menu.web.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/components/Menu/index.tsx

This file was deleted.

0 comments on commit ae633a1

Please sign in to comment.