Skip to content

Commit

Permalink
♻️ refactor(docs): added routeParams description (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyuubiTila authored May 13, 2024
1 parent 8a5f93b commit 7bdf8d9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/frontend/design-system/primitives/Typo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export type TextProps = {
};

const sizes: Record<TextProps["$size"], number> = {
1: 48,
2: 24,
3: 18,
4: 16,
5: 14,
6: 12,
1: 32,
2: 20,
3: 16,
4: 14,
5: 12,
6: 10,
};

const weights: Record<TextProps["$weight"], number> = {
Expand Down
6 changes: 6 additions & 0 deletions src/frontend/docs/scripts/form-scripts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ export function FormScriptDocumentation() {
</b>
: The current user details
</li>
<li>
<b>
<code>$.routeParams</code>
</b>
: The current entity details
</li>
</ul>
</p>
<p>
Expand Down
6 changes: 4 additions & 2 deletions src/frontend/views/data/Table/useTableColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ function TableActionButtons({
row: row.original,
});

return <ActionButtons actionButtons={portalActionButtons} justIcons />;
return (
<ActionButtons actionButtons={portalActionButtons} justIcons size="xs" />
);
}

const buildFilterConfigFromType = (prop: {
Expand Down Expand Up @@ -173,7 +175,7 @@ export const useTableColumns = (
entityPresentationScript.data.script,
{
field: name,
from: "details",
from: "table",
row: row.original,
value: value$1,
...evaluateScriptContext,
Expand Down

0 comments on commit 7bdf8d9

Please sign in to comment.