Skip to content

Commit

Permalink
Fix: changed divs to p tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexappleget committed Oct 31, 2024
1 parent adffce8 commit fa72e54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/TableColumns/TableColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const leagueColumns: ColumnDef<IEntryWithLeague>[] = [
* @param {object} row.row - The row definition
* @returns {JSX.Element} - The cell component.
*/
cell: ({ row }) => <div>{row.getValue('leagueName')}</div>,
cell: ({ row }) => <p>{row.getValue('leagueName')}</p>,
},
{
accessorKey: 'survivors',
Expand Down Expand Up @@ -196,7 +196,7 @@ export const leagueColumns: ColumnDef<IEntryWithLeague>[] = [
*/
cell: ({ row }): JSX.Element => {
const survivors = row.getValue('survivors') as string[];
return <div>{survivors.length}</div>;
return <p>{survivors.length}</p>;
},
/**
* To be able to sort the row by numbers.
Expand Down Expand Up @@ -239,7 +239,7 @@ export const leagueColumns: ColumnDef<IEntryWithLeague>[] = [
*/
cell: ({ row }): JSX.Element => {
const participants = row.getValue('participants') as string[];
return <div>{participants.length}</div>;
return <p>{participants.length}</p>;
},
/**
* To be able to sort the row by numbers.
Expand Down Expand Up @@ -282,7 +282,7 @@ export const leagueColumns: ColumnDef<IEntryWithLeague>[] = [
*/
cell: ({ row }): JSX.Element => {
const totalEntries = row.getValue('totalEntries') as number;
return <div>{totalEntries}</div>;
return <p>{totalEntries}</p>;
},
},
{
Expand Down Expand Up @@ -314,7 +314,7 @@ export const leagueColumns: ColumnDef<IEntryWithLeague>[] = [
*/
cell: ({ row }): JSX.Element => {
const aliveEntries = row.getValue('aliveEntries') as number;
return <div>{aliveEntries}</div>;
return <p>{aliveEntries}</p>;
},
},
{
Expand Down

0 comments on commit fa72e54

Please sign in to comment.