This commit is contained in:
2023-11-06 02:34:08 +05:30
parent 380a9059aa
commit fdb09a6ee8
5 changed files with 28 additions and 29 deletions

View File

@@ -66,14 +66,15 @@ const FontsList = (props: FontsListProps): JSX.Element => {
1000,
)}
data={
fonts
? fonts.map(
(font): SearchItem => ({
label: font.name,
data: font,
}),
)
: []
[]
// fonts
// ? fonts.map(
// (font): SearchItem => ({
// label: font.name,
// data: font,
// }),
// )
// : []
}
/>
</div>

View File

@@ -1,4 +1,6 @@
import { SelectionPill } from "../.."
import { ArPillSizes } from "../../../types/enums"
import { BasicFilterConfig } from "../../../types/filterconfig"
import "./AlphabetFilter.component.scss"
interface AlphabetFilterProps {
@@ -20,7 +22,7 @@ const AlphabetFilter = (props: AlphabetFilterProps): JSX.Element => {
<SelectionPill
classes="rounded me-2 mb-3"
data={{ label: char }}
size="small"
size={ArPillSizes.SMALL}
onClick={(data: BasicFilterConfig) =>
onSelectionChanged(data, "alphabet")
}

View File

@@ -1,4 +1,6 @@
import { SelectionPill } from "../.."
import { ArPillSizes } from "../../../types/enums"
import { BasicFilterConfig, BasicFilterType } from "../../../types/filterconfig"
import Helper from "../../../utils/helper"
import "./CategoryFilter.component.scss"
@@ -50,7 +52,7 @@ const CategoryFilter = (props: CategoryFilterProps): JSX.Element => {
<SelectionPill
classes="rounded me-2 mb-3"
data={{ label: category }}
size="small"
size={ArPillSizes.SMALL}
onClick={(data: BasicFilterConfig) =>
onCategorySelection(data, group)
}

View File

@@ -7,18 +7,18 @@ export const ICON_ROOT = `${
export const SESSION_COOKIE_NAME = "x-access-token"
// export const DEFAULT_LOCALE = {
// direction: "ltr",
// format: moment.localeData().longDateFormat("L"),
// separator: " - ",
// applyLabel: "Apply",
// cancelLabel: "Cancel",
// weekLabel: "W",
// customRangeLabel: "Custom Range",
// daysOfWeek: moment.weekdaysMin(),
// monthNames: moment.monthsShort(),
// firstDay: moment.localeData().firstDayOfWeek(),
// }
export const DEFAULT_LOCALE = {
direction: "ltr",
format: moment.localeData().longDateFormat("L"),
separator: " - ",
applyLabel: "Apply",
cancelLabel: "Cancel",
weekLabel: "W",
customRangeLabel: "Custom Range",
daysOfWeek: moment.weekdaysMin(),
monthNames: moment.monthsShort(),
firstDay: moment.localeData().firstDayOfWeek(),
}
export const ENDPOINTS = {
STATIC: {

View File

@@ -10,13 +10,7 @@ const FontsPage = (props: FontsPageProps): JSX.Element => {
<div className="ar-FontsPage">
<Main
contentClasses="p-2"
mainContent={
<FontsList
icons={[]}
onSearchChanged={() => {}}
// searchString={searchText}
/>
}
mainContent={<FontsList />}
// rightPanelContent={rightPanelContent}
// rightPanelHeader="Favorites"
/>