1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Chore: Refactor: Mobile: Rename CustomButton to IconButton (#10473)

This commit is contained in:
Henry Heino
2024-05-25 06:41:27 -07:00
committed by GitHub
parent 3bf9438a59
commit b09d6e8568
11 changed files with 148 additions and 151 deletions

View File

@ -14,9 +14,7 @@ import { Theme } from '@joplin/lib/themes/type';
import * as React from 'react';
import { ReactNode, useCallback, useState, useEffect } from 'react';
import { View, ViewStyle } from 'react-native';
import CustomButton from '../../CustomButton';
const AntIcon = require('react-native-vector-icons/AntDesign').default;
import IconButton from '../../IconButton';
interface Props {
children: ReactNode;
@ -54,10 +52,10 @@ const ToggleSpaceButton = (props: Props) => {
height: additionalPositiveSpace,
zIndex: -2,
}} />
<CustomButton
<IconButton
themeId={props.themeId}
description={'Move toolbar to bottom of screen'}
style={{
containerStyle={{
height: additionalPositiveSpace,
width: '100%',
@ -72,11 +70,10 @@ const ToggleSpaceButton = (props: Props) => {
alignItems: 'center',
}}
onPress={onDecreaseSpace}
>
<AntIcon name='down' style={{
color: theme.color,
}}/>
</CustomButton>
iconName='material chevron-down'
iconStyle={{ color: theme.color }}
/>
</>
);