style: update
This commit is contained in:
		
							parent
							
								
									58dfd2daa4
								
							
						
					
					
						commit
						56064a32a2
					
				@ -0,0 +1,27 @@
 | 
				
			|||||||
 | 
					@use "@/theme/sass/helper" as *;
 | 
				
			||||||
 | 
					.responsive_table {
 | 
				
			||||||
 | 
					  width: 100%;
 | 
				
			||||||
 | 
					  .table {
 | 
				
			||||||
 | 
					    width: 100%;
 | 
				
			||||||
 | 
					    thead {
 | 
				
			||||||
 | 
					      tr {
 | 
				
			||||||
 | 
					        th {
 | 
				
			||||||
 | 
					          text-align: start;
 | 
				
			||||||
 | 
					          padding-inline: rem(10);
 | 
				
			||||||
 | 
					          padding-block: rem(4);
 | 
				
			||||||
 | 
					          min-height: rem(40);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    tbody {
 | 
				
			||||||
 | 
					      tr {
 | 
				
			||||||
 | 
					        td {
 | 
				
			||||||
 | 
					          text-align: start;
 | 
				
			||||||
 | 
					          padding-inline: rem(10);
 | 
				
			||||||
 | 
					          padding-block: rem(4);
 | 
				
			||||||
 | 
					          min-height: rem(40);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -5,6 +5,7 @@ import {
 | 
				
			|||||||
  getCoreRowModel,
 | 
					  getCoreRowModel,
 | 
				
			||||||
  flexRender,
 | 
					  flexRender,
 | 
				
			||||||
} from "@tanstack/react-table";
 | 
					} from "@tanstack/react-table";
 | 
				
			||||||
 | 
					import global from "../../../src/theme/global/global.module.scss";
 | 
				
			||||||
import styles from "./TanStackTable.module.scss";
 | 
					import styles from "./TanStackTable.module.scss";
 | 
				
			||||||
import { useEffect, useState } from "react";
 | 
					import { useEffect, useState } from "react";
 | 
				
			||||||
import ReviewModal from "../reviewModal/ReviewModal";
 | 
					import ReviewModal from "../reviewModal/ReviewModal";
 | 
				
			||||||
@ -92,13 +93,13 @@ const TanStackTable = ({ data }: any) => {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
    <>
 | 
					    <>
 | 
				
			||||||
      <div className="w3-container">
 | 
					      <div className={styles.responsive_table}>
 | 
				
			||||||
        <table className="w3-table-all">
 | 
					        <table className={styles.table}>
 | 
				
			||||||
          <thead>
 | 
					          <thead>
 | 
				
			||||||
            {table.getHeaderGroups().map((headerGroup: any) => (
 | 
					            {table.getHeaderGroups().map((headerGroup: any) => (
 | 
				
			||||||
              <tr key={headerGroup?.id}>
 | 
					              <tr key={headerGroup?.id}>
 | 
				
			||||||
                {headerGroup.headers.map((header: any) => (
 | 
					                {headerGroup.headers.map((header: any) => (
 | 
				
			||||||
                  <th key={header?.id}>
 | 
					                  <th key={header?.id} className={global.body2}>
 | 
				
			||||||
                    {flexRender(
 | 
					                    {flexRender(
 | 
				
			||||||
                      header.column.columnDef.header,
 | 
					                      header.column.columnDef.header,
 | 
				
			||||||
                      header.getContext()
 | 
					                      header.getContext()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user