Skip to content

Commit

Permalink
Improve: Remove weekly top section and fix linting (#78)
Browse files Browse the repository at this point in the history
* chore: update .env.local.example

* refactor: remove weekly top section, fix linting, and remove unused imports
  • Loading branch information
thisissamridh authored May 18, 2023
1 parent fe376b5 commit df2809a
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .env.local.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
BACKEND_URL=https://reputation-backend-production.up.railway.app/
PROJECTS_URL=https://projects-backend.railway.app
BACKEND_URL=https://reputation-backend-production.up.railway.app
PROJECTS_URL=https://reputation-backend-production-1e2d.up.railway.app
4 changes: 2 additions & 2 deletions .github/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ git clone https://github.com/irffanasiff/Superteam-Reputation.git
# go to the project and open it with your fav. IDE
cd Superteam-Reputation
# install the dependencies using pnpm
pnpm i
pnpm i
# create a new branch and start working
git checkout -b <your-branch-name>
# run the development server
pnpm run dev
```

Once you have made the changes check ```commitlint.config.js``` for how to commit your code. If the build is succesfully you will be able to push the code and make the pr. Follow the pull request.
Once you have made the changes check `commitlint.config.js` for how to commit your code. If the build is succesfully you will be able to push the code and make the pr. Follow the pull request.
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@
## Discord Details (!important)

<!-- In order to allocate you the xp, you will have to provide your full discord username eg Discord:irffan#2419 -->

Discord:
5 changes: 1 addition & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
"source.fixAll": true,
"source.organizeImports": true
},
"cSpell.words": [
"borderbottomcolor",
"projectworkxp"
],
"cSpell.words": ["borderbottomcolor", "projectworkxp"],
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
Expand Down
6 changes: 3 additions & 3 deletions config/chakra.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ const theme = extendTheme({
900: '#0007B8',
},
superteamBlueDT: {
50:'#DCDEF6',
50: '#DCDEF6',
100: '#202442',
200: '#1B2047',
300: '#161C4C',
400: '#111951',
500: '#0C1556',
800:'#535AFF',
800: '#535AFF',
},
superteamAquaBlueLT: {
100: '#DAF8FF',
Expand Down Expand Up @@ -113,7 +113,7 @@ const theme = extendTheme({
800: '#0BD3FF',
},
superteamGreen: {
50:'#D0EFE0',
50: '#D0EFE0',
100: '#14352C',
700: '#00A67E',
800: '#00CF6C',
Expand Down
8 changes: 2 additions & 6 deletions src/components/Dashboard/DashboardHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@ import {
Input,
InputGroup,
InputLeftElement,
Select,
Stack,
Text,
useColorModeValue,
VStack,
} from '@chakra-ui/react';
import { useRouter } from 'next/router';
import { useState } from 'react';
import { BiSearchAlt2 } from 'react-icons/bi';
import { skillKind } from '../../enums/skill';
import CustomTag from '../HOC/Tag.HOC';
import MedalSVG from '../Logo/MedalSVG';
import { receivedXPFromAirtableType } from './Row/interfaces/airtableRecievedXP';

type propsType = {
Expand Down Expand Up @@ -205,7 +201,7 @@ const DashboardHeader = ({
width={['full', 'auto', 'auto', 'auto']}
justify={'space-between'}
>
<Box display="flex" flexDir={'column'} alignItems="end">
{/* <Box display="flex" flexDir={'column'} alignItems="end">
<HStack
width={'fit-content'}
roundedTop={'4px'}
Expand Down Expand Up @@ -308,7 +304,7 @@ const DashboardHeader = ({
);
})}
</VStack>
</Box>
</Box> */}
{/* <Text
as="a"
href="https://superteam-onboarding.gitbook.io/the-superteam-handbook/community/the-reputation-system"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/Row/GraphColumn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const GraphColumn = ({ row }: propsType) => {
}
return acc;
}, [] as { xp: number; monthYear: string }[]);
// last month data
// last month data
const lastSixMonths = [...new Array(6)].map((_, index) => {
const date = new Date();
date.setMonth(date.getMonth() - index); // get month index starts from 0 - Jan
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/Row/RowCategories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const RowCategories = ({ row }: propTypes) => {
<CustomChip
key={key}
text="Development"
colorScheme='superteamGreen'
colorScheme="superteamGreen"
/>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/Row/TableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const ProjectsTableRow = ({
</Flex>
</Td>
<Td>
<Flex flexDir="row" gap="0.4rem">
<Flex flexDir="row" gap="0.4rem">
<Text
fontWeight="500"
className={inter.className}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Navigation/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export default function Header() {
alignItems="center"
justifyContent="center"
>
<Link href={'/projects'}>Projects</Link><Link href={'/bounties'}>Bounties</Link>
<Link href={'/projects'}>Projects</Link>
<Link href={'/bounties'}>Bounties</Link>
<Button variant={'unstyled'} onClick={toggleColorMode}>
{colorMode === 'light' ? (
<Icon
Expand Down

0 comments on commit df2809a

Please sign in to comment.