Skip to content

Commit

Permalink
fix: box children centered well
Browse files Browse the repository at this point in the history
fix: box childreen centered well and git conflit resolved

fix: lint and yarn.lock
  • Loading branch information
thomarnauld committed Jan 26, 2024
1 parent 64b0367 commit eb45356
Show file tree
Hide file tree
Showing 7 changed files with 263 additions and 247 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const NetworkSelectorMenu: FC<{
style,
{
paddingHorizontal: layout.spacing_x2,
paddingTop: layout.spacing_x2,
paddingVertical: layout.spacing_x2,
backgroundColor: neutral17,
alignItems: "flex-start",
width: 172,
Expand Down
6 changes: 2 additions & 4 deletions packages/components/TopMenu/TopMenuBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ export const TopMenuBox: FC<{

return (
<TertiaryBox
notched={false}
style={[
style,
mainContainerStyle,
{
borderRadius: 8,
width: topMenuWidth,
},
{ borderRadius: 8, width: topMenuWidth },
]}
>
<ScrollView
Expand Down
7 changes: 5 additions & 2 deletions packages/components/boxes/TertiaryBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ import { neutral33 } from "../../utils/style/colors";
export const TertiaryBox: React.FC<{
children?: ReactNode;
style?: StyleProp<BoxStyle>;
}> = ({ style, children }) => {
notched?: boolean;
}> = ({ style, children, notched = true }) => {
return (
<Box
notched
style={[
{
borderWidth: 1,
borderColor: neutral33,
justifyContent: "center",
alignItems: "center",
},
style,
]}
notched={notched}
>
{children}
</Box>
Expand Down
4 changes: 2 additions & 2 deletions packages/components/fileUploader/FileUploader.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export const FileUploader: FC<FileUploaderProps> = ({

const handleFiles = async (files: File[]) => {
const _files = multiple ? files : [files[0]];
let supportedFiles = [...files].filter(
(file) => mimeTypes?.includes(file.type),
let supportedFiles = [...files].filter((file) =>
mimeTypes?.includes(file.type),
);

if (maxUpload && supportedFiles.length) {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/inputs/TextInputCustom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface TextInputCustomProps<T extends FieldValues>
onPressChildren?: () => void;
placeHolder?: string;
squaresBackgroundColor?: string;
style?: StyleProp<ViewStyle & BoxStyle>;
style?: StyleProp<ViewStyle>;
textInputStyle?: StyleProp<TextStyle & ViewStyle & BoxStyle>;
onPressEnter?: () => void;
currency?: Currency;
Expand Down
7 changes: 1 addition & 6 deletions packages/components/socialFeed/NewsFeed/NewsFeedInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -508,12 +508,7 @@ export const NewsFeedInput = React.forwardRef<
>
{viewWidth < BREAKPOINT_S && <SpacerColumn size={1.5} />}

<View
style={{
flexDirection: "row",
alignItems: "center",
}}
>
<View style={{ flexDirection: "row", alignItems: "center" }}>
<EmojiSelector
onEmojiSelected={onEmojiSelected}
buttonStyle={{ marginRight: layout.spacing_x2 }}
Expand Down
Loading

0 comments on commit eb45356

Please sign in to comment.