Skip to content

Commit

Permalink
refactor: move css files to the corresponding dirs (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js authored Oct 27, 2023
1 parent b888323 commit cd0311d
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 9 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build

on: push

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Run Build
run: pnpm run build
3 changes: 0 additions & 3 deletions .github/workflows/lint-bun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on: push
jobs:
eslint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
Expand Down
2 changes: 1 addition & 1 deletion app/components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ArrowTopRightOnSquareIcon } from '@heroicons/react/24/outline';
import { getFlagByCountryName } from '@/helpers/getEmojiFlagByISO';
// import { toLamaCase } from './toLamaCase';

import '@/components/helpers.css';
import '@/helpers/helpers.css';
import styles from './table.module.css';

interface TableProps {
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion app/manufacturers/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import styles from '@/components/layout/grid.module.css';

const Manufacturer = ({ params }: { params: { id: string } }) => {

return (
<main className="container">
<main className={styles.container}>
<h1>{ params.id }</h1>
</main>
);
Expand Down
6 changes: 3 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// import { useEffect, useState } from 'react';

import Table from '@/components/Table';
import Table from '@/components/table';
import { getManufacturers } from './api';

import '@/components/grid.css';
import styles from '@/components/layout/grid.module.css';

const HomePage = async () => {
const manufacturers = await getManufacturers().then((data) => data.Results);

return (
<main className="container">
<main className={styles.container}>
<Table manufacturers={manufacturers} />
</main>
);
Expand Down

0 comments on commit cd0311d

Please sign in to comment.