Skip to content

Commit

Permalink
remove vector icons usage
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBacon committed Mar 31, 2024
1 parent 5c3a298 commit d8dbde4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 53 deletions.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"slug": "bacon",
"scheme": "bacon",
"privacy": "public",
"platforms": ["ios", "android", "web"],
"platforms": ["web"],
"version": "1.0.0",
"orientation": "default",
"icon": "./assets/icon.png",
Expand Down
2 changes: 1 addition & 1 deletion src/Data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ImageSourcePropType } from 'react-native';
import { OpenGraphImages } from '@/constants/og';

export type ProjectAction = {
icon: string;
icon: 'photo';
url: string;
};

Expand Down
43 changes: 0 additions & 43 deletions src/components/SocialIcon.tsx

This file was deleted.

11 changes: 3 additions & 8 deletions src/components/card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { Article, Div, Footer, H2, H3, P } from '@expo/html-elements';
import { Div, Footer, H3, P } from '@expo/html-elements';
import { Video } from 'expo-av';
import { BlurView } from 'expo-blur';
import { Link } from 'expo-router';
import React from 'react';
import { Image, Platform, StyleSheet, View } from 'react-native';
import { useHover, useREM } from 'react-native-web-hooks';
import isHoverEnabled from 'react-native-web-hooks/build/isHoverEnabled';

import PhotoLibraryIcon from '@/svg/photo-library.svg';
import { Project } from '../../Data';
import SocialIcon from '../SocialIcon';

const upperFlow = 16;
const ICON_SIZE = 72;
Expand Down Expand Up @@ -153,11 +152,7 @@ export default function ProjectCard({
target="_blank"
href={social.url}
>
<SocialIcon
name={social.icon}
color="white"
size={16 * 2.2}
/>
<PhotoLibraryIcon fill="white" height={36} width={36} />
</Link>
</Div>
))}
Expand Down
3 changes: 3 additions & 0 deletions src/svg/photo-library.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d8dbde4

Please sign in to comment.