MCPcopy Create free account
hub / github.com/callstack/react-native-paper / FlatTable

Function FlatTable

docs/src/components/ThemeColorsTable.tsx:30–63  ·  view source on GitHub ↗
({
  themeColorsData,
  uniqueKeys,
}: {
  themeColorsData: DataObject;
  uniqueKeys: string[];
})

Source from the content-addressed store, hash-verified

28};
29
30const FlatTable = ({
31 themeColorsData,
32 uniqueKeys,
33}: {
34 themeColorsData: DataObject;
35 uniqueKeys: string[];
36}): ReactNode => {
37 const rows = Object.keys(themeColorsData).map((mode) => {
38 return (
39 <tr key={`${mode}`}>
40 <td>{mode}</td>
41 {getTableCell(uniqueKeys, themeColorsData[mode] as DataObject)}
42 </tr>
43 );
44 });
45
46 return (
47 <>
48 <Admonition type="info">
49 The table below outlines the theme colors, specifically for MD3{' '}
50 <i>(theme version 3)</i> at the moment.
51 </Admonition>
52 <table>
53 <thead>
54 <tr>
55 <th>mode</th>
56 {getTableHeader(uniqueKeys)}
57 </tr>
58 </thead>
59 <tbody>{rows}</tbody>
60 </table>
61 </>
62 );
63};
64
65const TabbedTable = ({
66 themeColorsData,

Callers

nothing calls this directly

Calls 2

getTableCellFunction · 0.85
getTableHeaderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…