mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
remove old components
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
import React from 'react';
|
||||
import { View } from 'react-native';
|
||||
import HeaderButton from './HeaderButton';
|
||||
|
||||
interface Props {
|
||||
onClick: (url: string) => void;
|
||||
}
|
||||
|
||||
export const Header = ({ onClick }: Props) => (
|
||||
<View>
|
||||
<HeaderButton title="Home" onClick={() => onClick('/')} />
|
||||
<HeaderButton title="Wallet" onClick={() => onClick('/wallet')} />
|
||||
<HeaderButton title="Wallet/send#/1" onClick={() => onClick('/wallet/send#/1')} />
|
||||
<HeaderButton title="Wallet/send#/2" onClick={() => onClick('/wallet/send#/2')} />
|
||||
</View>
|
||||
);
|
||||
@@ -1,13 +0,0 @@
|
||||
import React from 'react';
|
||||
import { Button } from 'react-native';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
onClick: () => void;
|
||||
}
|
||||
|
||||
const HeaderButton = (props: Props) => {
|
||||
return <Button onPress={props.onClick} title={props.title} />;
|
||||
};
|
||||
|
||||
export default HeaderButton;
|
||||
@@ -1,10 +0,0 @@
|
||||
import React from 'react';
|
||||
import { Button } from 'react-native';
|
||||
|
||||
interface Props {
|
||||
onPress: () => void;
|
||||
}
|
||||
|
||||
export const StartButton = (props: Props) => {
|
||||
return <Button onPress={props.onPress} title="Start" />;
|
||||
};
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"name": "@trezor/components",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"react": "16.8.6",
|
||||
"react-native": "0.59.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^16.7.11",
|
||||
"@types/react-native": "^0.57.41"
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import { StyleSheet, TextStyle } from 'react-native';
|
||||
|
||||
const colors = {
|
||||
text: '#333',
|
||||
};
|
||||
|
||||
type Colors = typeof colors;
|
||||
|
||||
const baseFontSize = 16;
|
||||
const baseLineHeight = 24;
|
||||
|
||||
class Theme {
|
||||
text: TextStyle;
|
||||
// container: ViewStyle;
|
||||
|
||||
// TODO: https://medium.com/react-native-training/react-native-custom-fonts-ccc9aacf9e5e
|
||||
constructor(colors: Colors) {
|
||||
this.text = {
|
||||
// fontFamily:
|
||||
// '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
|
||||
fontSize: baseFontSize,
|
||||
lineHeight: baseLineHeight,
|
||||
color: colors.text,
|
||||
};
|
||||
|
||||
// this.container = {
|
||||
// width: 123,
|
||||
// color: 'red'
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
export const lightTheme = StyleSheet.create(new Theme(colors));
|
||||
Reference in New Issue
Block a user