Skip to content

Commit

Permalink
인사이트 상세, 토스트 ui fix (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
watchiswatch authored Oct 14, 2023
1 parent eb307b3 commit 7ca24a4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
21 changes: 11 additions & 10 deletions src/components/bars/Toasts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ import Toast from 'react-native-toast-message';
import theme from '../../theme/light';
import { SvgXml } from 'react-native-svg';
import copyLinkXml from '../../../assets/svgs/copyLinkXml';

import { BlurView } from 'expo-blur';
const toastConfig = {
snackbar: (props) => (
<View
style={{
backgroundColor: 'white',
borderRadius: 8,
overflow: 'hidden',
}}
>
<View
<BlurView
intensity={16}
style={{
width: 343,
paddingHorizontal: 16,
paddingVertical: 8,
borderRadius: 8,
backgroundColor: `${theme.colors.graphic.black}cc`,
alignContent: 'center',
opacity: 1,
}}
>
<Text
Expand All @@ -32,20 +32,21 @@ const toastConfig = {
>
{props.text1}
</Text>
</View>
</BlurView>
</View>
),
copySnackbar: (props) => (
<View
style={{
backgroundColor: 'white',
borderRadius: 8,
overflow: 'hidden',
}}
>
<View
<BlurView
intensity={16}
style={{
width: 343,
marginHorizontal: 16,
borderRadius: 8,
backgroundColor: `${theme.colors.graphic.black}cc`,
alignContent: 'center',
}}
Expand Down Expand Up @@ -93,7 +94,7 @@ const toastConfig = {
</Text>
</Pressable>
</View>
</View>
</BlurView>
</View>
),
};
Expand Down
2 changes: 0 additions & 2 deletions src/components/cards/LinkCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ function createStyles(props: customProps) {
const styles = StyleSheet.create({
container: {
width: props.width,
borderWidth: 1,
borderColor: '#12131420',
borderRadius: 8,
flexDirection: 'row',
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Profile = ({
<View style={styles.Description}>
<Text style={theme.fonts.text.body2.bold}>{nickname}</Text>
<Text
style={{ ...theme.fonts.text.caption1, color: `${theme.colors.graphic.black}50` }}
style={{ ...theme.fonts.text.caption1, color: `${theme.colors.graphic.black}80` }}
>
{title}{getTimeInterval(new Date().getTime() - new Date(createdAt).getTime())}
</Text>
Expand Down

0 comments on commit 7ca24a4

Please sign in to comment.