Skip to content

Commit

Permalink
Some stuff:
Browse files Browse the repository at this point in the history
'
  • Loading branch information
Alder Whiteford authored and Alder Whiteford committed Jun 20, 2024
1 parent b107f87 commit 3ae7fd2
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/react-fontawesome": "^0.2.2",
"@fortawesome/react-native-fontawesome": "^0.3.2",
"@generatesac/lib": "0.0.191",
"@generatesac/lib": "0.0.193",
"@gorhom/bottom-sheet": "^4.6.3",
"@hookform/resolvers": "^3.4.2",
"@react-native-async-storage/async-storage": "^1.23.1",
Expand Down
2 changes: 1 addition & 1 deletion frontend/mobile/src/app/app/user/following.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { userApi } from '@generatesac/lib';
import { useAppSelector } from '@/src/store/store';

import { Arrow, Box, Button, Text } from '../../design-system';
import { Clubcard } from '../../design-system/components/ClubCard/ClubCard';
import ClubCardStandardSkeleton from '../../design-system/components/ClubCard/Skeletons/ClubCardStandardSkeleton';

Check failure on line 11 in frontend/mobile/src/app/app/user/following.tsx

View workflow job for this annotation

GitHub Actions / Lint

Insert `{·Clubcard·}·from·'../../design-system/components/ClubCard/ClubCard';⏎import·`
import { GlobalLayout } from '../../design-system/components/GlobalLayout/GlobalLayout';
import PageError from '../../design-system/components/PageError/PageError';

Check failure on line 13 in frontend/mobile/src/app/app/user/following.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `';⏎import·{·Clubcard·}·from·'../../design-system/components/ClubCard/ClubCard`
import { Clubcard } from '../../design-system/components/ClubCard/ClubCard';

const Following = () => {
const { id, following } = useAppSelector((state) => state.user);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Tag } from '@generatesac/lib';

import ClubCardStandard from './Variants/ClubCardStandard';

export interface ClubCardProps {
id: string;
logo: string;
name: string;
tags?: Tag[];
variant?: 'standard';
}

export const Clubcard = ({
id,
logo,
name,
variant = 'standard'
}: ClubCardProps) => {
switch (variant) {
case 'standard':
return <ClubCardStandard id={id} logo={logo} name={name} />;
default:
return <ClubCardStandard id={id} logo={logo} name={name} />;
}
};
8 changes: 4 additions & 4 deletions frontend/mobile/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1402,10 +1402,10 @@
humps "^2.0.1"
prop-types "^15.7.2"

"@generatesac/[email protected].191":
version "0.0.191"
resolved "https://registry.yarnpkg.com/@generatesac/lib/-/lib-0.0.191.tgz#3c999ee26ed1eaab77f8bd1f435d779990fabbba"
integrity sha512-8P0bPY4DNSW4fgTFVpS4EOR4dRgZ4aI+EJvce4RiBIXQLnfwfAbxEtr0M1xHimEZxLH7Lhe3HpUl7Lt0Qx8arQ==
"@generatesac/[email protected].193":
version "0.0.193"
resolved "https://registry.yarnpkg.com/@generatesac/lib/-/lib-0.0.193.tgz#191e989703e6dbb2ca1c3d2e3de9f76dab0ac51b"
integrity sha512-vZ4ionDqakCsMN7zNxjJh88yL2sxeVL1Hz7yaW2Ce/pE9fYo5CczcDhQPTL+h+o77g1ldgo0ZLCLlng+0r9YKA==
dependencies:
"@reduxjs/toolkit" "^2.2.3"
react "^18.2.0"
Expand Down

0 comments on commit 3ae7fd2

Please sign in to comment.