Skip to content

Commit

Permalink
Some refactoring work
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuz0u committed Jan 19, 2024
1 parent 7c957ed commit 274c23b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/app/company/data.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-irregular-whitespace */
interface SummaryInfo {
type: 'plain' | 'address' | 'industry'
title: string
Expand Down
8 changes: 4 additions & 4 deletions src/app/company/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-irregular-whitespace */
import { Metadata } from 'next'
import React from 'react'

Expand All @@ -14,10 +13,11 @@ function SummarySection() {
return (
<Section title='会社概要'>
{summaryInfos.map((summaryInfo) => {
const key = summaryInfo.type + summaryInfo.title + summaryInfo.contents.length
switch (summaryInfo.type) {
case 'plain':
return (
<Subsection title={summaryInfo.title}>
<Subsection key={key} title={summaryInfo.title}>
{summaryInfo.contents.map((content) => {
return <Label key={content}>{content}</Label>
})}
Expand All @@ -26,7 +26,7 @@ function SummarySection() {

case 'address':
return (
<Subsection title={summaryInfo.title}>
<Subsection key={key} title={summaryInfo.title}>
<address className='not-italic'>
{summaryInfo.contents.map((content) => {
return <Label key={content}>{content}</Label>
Expand All @@ -46,7 +46,7 @@ function SummarySection() {

case 'industry':
return (
<Subsection title={summaryInfo.title}>
<Subsection key={key} title={summaryInfo.title}>
<ul className='ml-5 list-disc'>
{summaryInfo.contents.map((content) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/app/products/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function AppCards() {
{infos.map((info) => {
return (
<IconCell
key={info.type}
key={info.type + info.value}
icon={<PriceIcon info={info} />}
title={(function () {
switch (info.type) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/components/navigation-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function Links() {

export default function NavigationBar() {
return (
<nav className='fixed top-0 z-10 flex w-full justify-center backdrop-blur-md backdrop-filter dark:bg-black/10'>
<nav className='fixed top-0 z-10 flex w-full justify-center backdrop-blur-3xl dark:bg-black/10'>
<div className='w-limited flex items-center justify-between py-3'>
<Logo />
<div className='hidden sm:block'>
Expand Down

0 comments on commit 274c23b

Please sign in to comment.